Allocating an IRQ on PCI

2001-01-04 Thread Matthew C. Forman
Hi all, I want to allocate an IRQ for a PCI device driver. Normally this is easy enough, since the BIOS would reserve it for me, then I would just have to bus_alloc_resource and not even care which IRQ line it's using. Thing is, here the BIOS hasn't allocated an IRQ, so I'll need to

AMD PM driver finally there!

2000-12-30 Thread Matthew C. Forman
OK, I've finally got there with the AMD pm/smbus driver. It's now newbus, though this was quite a weird experience. In the end, I found that my BIOS wasn't giving out any I/O resource information for the AMD 756's power management function, hence bus_alloc_resource failed. A bus_set_resource

Allocating I/O port space

2000-12-29 Thread Matthew C. Forman
Hi again all, Well, despite the reception I'm still here, desperately trying to allocate an I/O port range! Still can't get bus_alloc_resource to work, despite doing everything by the book. I have a question. My kernel prints this: amdpm0: AMD 756 Power Management Controller at device 7.3 on

AMD System Management driver and Newbus

2000-12-27 Thread Matthew C. Forman
return (ENXIO); } amdpm_sc-smbst = rman_get_bustag(amdpm_sc-pio); amdpm_sc-smbsh = rman_get_bushandle(amdpm_sc-pio); /* XXX add the I2C interface to the root_bus until pcibus is ready */ device_add_child(root_bus, "amdsmb", unit); return (0); } ---