Whitespace cleanup, no functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34695 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -130,8 +130,8 @@ bus_alloc_resource(device_t dev, int type, int *rid, unsigned long start,
|
|||||||
&& type != SYS_RES_IOPORT)
|
&& type != SYS_RES_IOPORT)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
device_printf(dev, "bus_alloc_resource(%i, [%i], 0x%lx, 0x%lx, 0x%lx, 0x%lx)\n",
|
device_printf(dev, "bus_alloc_resource(%i, [%i], 0x%lx, 0x%lx, 0x%lx,"
|
||||||
type, *rid, start, end, count, flags);
|
"0x%lx)\n", type, *rid, start, end, count, flags);
|
||||||
|
|
||||||
// maybe a local array of resources is enough
|
// maybe a local array of resources is enough
|
||||||
res = malloc(sizeof(struct resource));
|
res = malloc(sizeof(struct resource));
|
||||||
@@ -171,7 +171,7 @@ bus_release_resource(device_t dev, int type, int rid, struct resource *res)
|
|||||||
|
|
||||||
int
|
int
|
||||||
bus_alloc_resources(device_t dev, struct resource_spec *resourceSpec,
|
bus_alloc_resources(device_t dev, struct resource_spec *resourceSpec,
|
||||||
struct resource **resources)
|
struct resource **resources)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
@@ -194,7 +194,7 @@ bus_alloc_resources(device_t dev, struct resource_spec *resourceSpec,
|
|||||||
|
|
||||||
void
|
void
|
||||||
bus_release_resources(device_t dev, const struct resource_spec *resourceSpec,
|
bus_release_resources(device_t dev, const struct resource_spec *resourceSpec,
|
||||||
struct resource **resources)
|
struct resource **resources)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
@@ -466,6 +466,7 @@ bus_child_present(device_t child)
|
|||||||
return bus_child_present(parent);
|
return bus_child_present(parent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// #pragma mark - PCI functions
|
// #pragma mark - PCI functions
|
||||||
|
|
||||||
|
|
||||||
@@ -665,14 +666,14 @@ pci_msi_count(device_t dev)
|
|||||||
int
|
int
|
||||||
pci_alloc_msi(device_t dev, int *count)
|
pci_alloc_msi(device_t dev, int *count)
|
||||||
{
|
{
|
||||||
return ENODEV;
|
return ENODEV;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
pci_release_msi(device_t dev)
|
pci_release_msi(device_t dev)
|
||||||
{
|
{
|
||||||
return ENODEV;
|
return ENODEV;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -686,6 +687,5 @@ pci_msix_count(device_t dev)
|
|||||||
int
|
int
|
||||||
pci_alloc_msix(device_t dev, int *count)
|
pci_alloc_msix(device_t dev, int *count)
|
||||||
{
|
{
|
||||||
return ENODEV;
|
return ENODEV;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -51,6 +51,7 @@ int pci_release_msi(device_t dev);
|
|||||||
int pci_msix_count(device_t dev);
|
int pci_msix_count(device_t dev);
|
||||||
int pci_alloc_msix(device_t dev, int *count);
|
int pci_alloc_msix(device_t dev, int *count);
|
||||||
|
|
||||||
|
int pci_get_powerstate(device_t dev);
|
||||||
|
|
||||||
static inline int
|
static inline int
|
||||||
pci_get_vpd_ident(device_t dev, const char **identptr)
|
pci_get_vpd_ident(device_t dev, const char **identptr)
|
||||||
@@ -66,10 +67,4 @@ pci_set_powerstate(device_t dev, int state)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static inline int
|
|
||||||
pci_get_powerstate(device_t dev)
|
|
||||||
{
|
|
||||||
return PCI_POWERSTATE_D0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif /* _FBSD_COMPAT_DEV_PCI_PCIVAR_H_ */
|
#endif /* _FBSD_COMPAT_DEV_PCI_PCIVAR_H_ */
|
||||||
|
|||||||
Reference in New Issue
Block a user