Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/pci/hostb_pci.c
| Show First 20 Lines • Show All 100 Lines • ▼ Show 20 Lines | |||||
| pci_hostb_alloc_resource(device_t dev, device_t child, int type, int *rid, | pci_hostb_alloc_resource(device_t dev, device_t child, int type, int *rid, | ||||
| rman_res_t start, rman_res_t end, rman_res_t count, u_int flags) | rman_res_t start, rman_res_t end, rman_res_t count, u_int flags) | ||||
| { | { | ||||
| return (bus_alloc_resource(dev, type, rid, start, end, count, flags)); | return (bus_alloc_resource(dev, type, rid, start, end, count, flags)); | ||||
| } | } | ||||
| static int | static int | ||||
| pci_hostb_release_resource(device_t dev, device_t child, int type, int rid, | pci_hostb_release_resource(device_t dev, device_t child, struct resource *r) | ||||
| struct resource *r) | |||||
| { | { | ||||
| return (bus_release_resource(dev, type, rid, r)); | return (bus_release_resource(dev, r)); | ||||
| } | } | ||||
| /* PCI interface. */ | /* PCI interface. */ | ||||
| static uint32_t | static uint32_t | ||||
| pci_hostb_read_config(device_t dev, device_t child, int reg, int width) | pci_hostb_read_config(device_t dev, device_t child, int reg, int width) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 167 Lines • Show Last 20 Lines | |||||