ata-pci.h (1a0fda2b547365c9453523592a445dfe21266d4b) | ata-pci.h (445cc79ca9bb78ad2bb52d37139aceb65c32680c) |
---|---|
1/*- 2 * Copyright (c) 2003 - 2008 S�ren Schmidt <sos@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 488 unchanged lines hidden (view full) --- 497int ata_pci_detach(device_t dev); 498int ata_pci_suspend(device_t dev); 499int ata_pci_resume(device_t dev); 500int ata_pci_read_ivar(device_t dev, device_t child, int which, uintptr_t *result); 501int ata_pci_write_ivar(device_t dev, device_t child, int which, uintptr_t value); 502uint32_t ata_pci_read_config(device_t dev, device_t child, int reg, int width); 503void ata_pci_write_config(device_t dev, device_t child, int reg, 504 uint32_t val, int width); | 1/*- 2 * Copyright (c) 2003 - 2008 S�ren Schmidt <sos@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 488 unchanged lines hidden (view full) --- 497int ata_pci_detach(device_t dev); 498int ata_pci_suspend(device_t dev); 499int ata_pci_resume(device_t dev); 500int ata_pci_read_ivar(device_t dev, device_t child, int which, uintptr_t *result); 501int ata_pci_write_ivar(device_t dev, device_t child, int which, uintptr_t value); 502uint32_t ata_pci_read_config(device_t dev, device_t child, int reg, int width); 503void ata_pci_write_config(device_t dev, device_t child, int reg, 504 uint32_t val, int width); |
505int ata_pci_child_location_str(device_t dev, device_t child, char *buf, 506 size_t buflen); |
|
505struct resource * 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); 506int ata_pci_release_resource(device_t dev, device_t child, int type, int rid, struct resource *r); 507int ata_pci_setup_intr(device_t dev, device_t child, struct resource *irq, int flags, driver_filter_t *filter, driver_intr_t *function, void *argument, void **cookiep); 508 int ata_pci_teardown_intr(device_t dev, device_t child, struct resource *irq, void *cookie); 509int ata_pci_ch_attach(device_t dev); 510int ata_pci_ch_detach(device_t dev); 511int ata_pci_status(device_t dev); 512void ata_pci_hw(device_t dev); --- 32 unchanged lines hidden (view full) --- 545 DEVMETHOD(bus_alloc_resource, ata_pci_alloc_resource), \ 546 DEVMETHOD(bus_release_resource, ata_pci_release_resource), \ 547 DEVMETHOD(bus_activate_resource, bus_generic_activate_resource), \ 548 DEVMETHOD(bus_deactivate_resource, bus_generic_deactivate_resource), \ 549 DEVMETHOD(bus_setup_intr, ata_pci_setup_intr), \ 550 DEVMETHOD(bus_teardown_intr, ata_pci_teardown_intr), \ 551 DEVMETHOD(pci_read_config, ata_pci_read_config), \ 552 DEVMETHOD(pci_write_config, ata_pci_write_config), \ | 507struct resource * 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); 508int ata_pci_release_resource(device_t dev, device_t child, int type, int rid, struct resource *r); 509int ata_pci_setup_intr(device_t dev, device_t child, struct resource *irq, int flags, driver_filter_t *filter, driver_intr_t *function, void *argument, void **cookiep); 510 int ata_pci_teardown_intr(device_t dev, device_t child, struct resource *irq, void *cookie); 511int ata_pci_ch_attach(device_t dev); 512int ata_pci_ch_detach(device_t dev); 513int ata_pci_status(device_t dev); 514void ata_pci_hw(device_t dev); --- 32 unchanged lines hidden (view full) --- 547 DEVMETHOD(bus_alloc_resource, ata_pci_alloc_resource), \ 548 DEVMETHOD(bus_release_resource, ata_pci_release_resource), \ 549 DEVMETHOD(bus_activate_resource, bus_generic_activate_resource), \ 550 DEVMETHOD(bus_deactivate_resource, bus_generic_deactivate_resource), \ 551 DEVMETHOD(bus_setup_intr, ata_pci_setup_intr), \ 552 DEVMETHOD(bus_teardown_intr, ata_pci_teardown_intr), \ 553 DEVMETHOD(pci_read_config, ata_pci_read_config), \ 554 DEVMETHOD(pci_write_config, ata_pci_write_config), \ |
555 DEVMETHOD(bus_child_location_str, ata_pci_child_location_str), \ |
|
553 { 0, 0 } \ 554}; \ 555static driver_t __CONCAT(dname,_driver) = { \ 556 "atapci", \ 557 __CONCAT(dname,_methods), \ 558 sizeof(struct ata_pci_controller) \ 559}; \ 560DRIVER_MODULE(dname, pci, __CONCAT(dname,_driver), ata_pci_devclass, 0, 0); \ 561MODULE_VERSION(dname, 1); \ 562MODULE_DEPEND(dname, ata, 1, 1, 1); \ 563MODULE_DEPEND(dname, atapci, 1, 1, 1); 564 | 556 { 0, 0 } \ 557}; \ 558static driver_t __CONCAT(dname,_driver) = { \ 559 "atapci", \ 560 __CONCAT(dname,_methods), \ 561 sizeof(struct ata_pci_controller) \ 562}; \ 563DRIVER_MODULE(dname, pci, __CONCAT(dname,_driver), ata_pci_devclass, 0, 0); \ 564MODULE_VERSION(dname, 1); \ 565MODULE_DEPEND(dname, ata, 1, 1, 1); \ 566MODULE_DEPEND(dname, atapci, 1, 1, 1); 567 |