Changeset View
Changeset View
Standalone View
Standalone View
sys/powerpc/powermac/cpcht.c
Context not available. | |||||
static devclass_t cpcht_devclass; | static devclass_t cpcht_devclass; | ||||
DEFINE_CLASS_1(pcib, cpcht_driver, cpcht_methods, sizeof(struct cpcht_softc), | DEFINE_CLASS_1(pcib, cpcht_driver, cpcht_methods, sizeof(struct cpcht_softc), | ||||
ofw_pci_driver); | ofw_pci_driver); | ||||
DRIVER_MODULE(cpcht, ofwbus, cpcht_driver, cpcht_devclass, 0, 0); | EARLY_DRIVER_MODULE(cpcht, ofwbus, cpcht_driver, cpcht_devclass, 0, 0, | ||||
BUS_PASS_BUS); | |||||
#define CPCHT_IOPORT_BASE 0xf4000000UL /* Hardwired */ | #define CPCHT_IOPORT_BASE 0xf4000000UL /* Hardwired */ | ||||
#define CPCHT_IOPORT_SIZE 0x00400000UL | #define CPCHT_IOPORT_SIZE 0x00400000UL | ||||
Context not available. | |||||
/* Device interface */ | /* Device interface */ | ||||
DEVMETHOD(device_probe, openpic_cpcht_probe), | DEVMETHOD(device_probe, openpic_cpcht_probe), | ||||
DEVMETHOD(device_attach, openpic_cpcht_attach), | DEVMETHOD(device_attach, openpic_cpcht_attach), | ||||
DEVMETHOD(bus_new_pass, openpic_new_pass), | |||||
/* PIC interface */ | /* PIC interface */ | ||||
DEVMETHOD(pic_bind, openpic_bind), | DEVMETHOD(pic_bind, openpic_bind), | ||||
Context not available. | |||||
sizeof(struct openpic_cpcht_softc), | sizeof(struct openpic_cpcht_softc), | ||||
}; | }; | ||||
DRIVER_MODULE(openpic, unin, openpic_cpcht_driver, openpic_devclass, 0, 0); | EARLY_DRIVER_MODULE(openpic, unin, openpic_cpcht_driver, openpic_devclass, 0, 0, | ||||
BUS_PASS_INTERRUPT); | |||||
static int | static int | ||||
openpic_cpcht_probe(device_t dev) | openpic_cpcht_probe(device_t dev) | ||||
Context not available. |