Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ata/ata-pci.c
Show First 20 Lines • Show All 211 Lines • ▼ Show 20 Lines | ata_pci_write_config(device_t dev, device_t child, int reg, | ||||
uint32_t val, int width) | uint32_t val, int width) | ||||
{ | { | ||||
pci_write_config(dev, reg, val, width); | pci_write_config(dev, reg, val, width); | ||||
} | } | ||||
struct resource * | struct resource * | ||||
ata_pci_alloc_resource(device_t dev, device_t child, int type, int *rid, | ata_pci_alloc_resource(device_t dev, device_t child, int type, int *rid, | ||||
u_long start, u_long end, u_long count, u_int flags) | rman_res_t start, rman_res_t end, rman_res_t count, | ||||
u_int flags) | |||||
{ | { | ||||
struct ata_pci_controller *controller = device_get_softc(dev); | struct ata_pci_controller *controller = device_get_softc(dev); | ||||
struct resource *res = NULL; | struct resource *res = NULL; | ||||
if (device_get_devclass(child) == ata_devclass) { | if (device_get_devclass(child) == ata_devclass) { | ||||
int unit = ((struct ata_channel *)device_get_softc(child))->unit; | int unit = ((struct ata_channel *)device_get_softc(child))->unit; | ||||
int myrid; | int myrid; | ||||
▲ Show 20 Lines • Show All 704 Lines • Show Last 20 Lines |