summaryrefslogtreecommitdiffstats
path: root/sys/dev/pcf/pcf_isa.c
Commit message (Collapse)AuthorAgeFilesLines
* - Consolidate module version for the pcf module into just pcf.c insteadjhb2008-08-051-2/+0
| | | | | | | | | of having duplicate versions in each bus attachment. - Add a DRIVER_MODULE() instance so that the iicbus(4) driver will actually attach to pcf(4) driver instances. - Fix compile of envctrl.c. Pointy hat: jhb (3)
* Add locking to the various iicbus(4) bridge drivers:jhb2008-08-041-4/+6
| | | | | | | | | | | | | | | | | | | | | - Just grab Giant in the ixp425_iic(4) driver since this driver uses a shared address/data register window pair to access the actual I2C registers. None of the other ixp425 drivers lock access to these shared address/data registers yet and that would need to be done before this could use any meaningful locking. - Add locking to the interrupt handler and 'iicbus_reset' methods of the at91_twi(4) driver. - Add locking to the pcf(4) driver. Other pcf(4) fixes include: - Don't needlessly zero the softc. - Use bus_foo rather than bus_space_foo and remove bus space tag and handle from softc. - The lpbb(4) driver just grabs Giant for now. This will be refined later when ppbus(4) is locked. - As was done with smbus earlier, move the DRIVER_MODULE() lines to match the bus driver (either iicbus or iicbb) to the bridge driver into the bridge drivers. Tested by: sam (arm/ixp425)
* Don't call bus_deactivate_resource() explicitly before callingnyan2007-03-211-6/+0
| | | | | bus_release_resource(). This is needed for pc98 by upcoming nexus related change.
* o break newbus api: add a new argument of type driver_filter_t topiso2007-02-231-1/+1
| | | | | | | | | | | | | bus_setup_intr() o add an int return code to all fast handlers o retire INTR_FAST/IH_FAST For more info: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=465712+0+current/freebsd-current Reviewed by: many Approved by: re@
* - Use bus_setup_intr() and bus_teardown_intr() to register device driverjhb2006-02-221-3/+2
| | | | | | | | | | interrupt handlers rather than BUS_SETUP_INTR() and BUS_TEARDOWN_INTR(). Uses of the BUS_*() versions in the implementation of foo_intr methods in bus drivers were not changed. Mostly this just means that some drivers might start printing diagnostic messages like [FAST] when appropriate as well as honoring mpsafenet=0. - Fix two more of the ppbus drivers' identify routines to function correctly in the mythical case of a machine with more than one ppbus.
* If the device has a PNPID, don't bother to attach. There were someimp2006-02-021-2/+5
| | | | instances where the probe that was here would falsely grab a device.
* Unbreak after struct resource was hidden. Tested with EBus front-end onmarius2004-08-111-0/+2
| | | | Sun AXe board.
* - Add missing <sys/module.h>.marius2004-06-101-20/+20
| | | | | | | | | - s,pcf_,pcf_isa, to better reflect the purpose of this front-end and to avoid conflicts. - Don't use this front-end for attaching to EBus, declaring it as an EBus driver was a cut&paste accident according to joerg. OK'ed by: joerg, nsouch
* - #define\tFOO\tBARmarius2004-06-101-2/+2
| | | | | | - Remove two tabs from an otherwise empty line. OK'ed by: nsouch
* Necessary modifications do get pcf working again for ISA. Tested withnsouch2004-05-311-8/+36
| | | | | | | | | | my Elektor card. Note that the hints are necessary to specify the IO base of the pcf chip. This enables to check the IO base when the probe routine is called during ISA enumeration. The interrupt driven code is mixed with polled mode, which is wrong and produces supposed spurious interrupts at each access. I still have to work on it.
* Round #1 of improving pcf(4).joerg2004-05-251-0/+185
This splits the driver into a bus-independant backend, plus bus-specific frontends. The old pcf(4) (i386/ISA) frontend is now in pcf_isa.c, the frontend in envctrl.c is for sparc64/Ebus2 (Sun device name: SUNW,envctrl from Sun E450 machines). More frontends are expected to appear in future. This is not yet ready for public consumption, but it basically works. Nicolas will bring over his ISA-specific fixes soon. Reviewed by: nsouch
OpenPOWER on IntegriCloud