Print this page
5255 uts shouldn't open-code ISP2
*** 20,29 ****
--- 20,30 ----
*/
/*
* Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
*/
+ #include <sys/sysmacros.h>
#include <sys/types.h>
#include <sys/mkdev.h>
#include <sys/stat.h>
#include <sys/sunddi.h>
#include <vm/seg_kmem.h>
*** 586,596 ****
int rval = SUCCESS;
uint64_t local_data;
pci_cfgacc_req_t req;
uint32_t max_offset;
! if ((size <= 0) || (size > 8) || ((size & (size - 1)) != 0)) {
prg->status = PCITOOL_INVALID_SIZE;
return (ENOTSUP);
}
/*
--- 587,597 ----
int rval = SUCCESS;
uint64_t local_data;
pci_cfgacc_req_t req;
uint32_t max_offset;
! if ((size <= 0) || (size > 8) || !ISP2(size)) {
prg->status = PCITOOL_INVALID_SIZE;
return (ENOTSUP);
}
/*