njl
05a1f56fc9
Convert callers to the new bus_alloc_resource_any(9) API.
...
Submitted by: Mark Santcroos <marks@ripe.net>
Reviewed by: imp, dfr, bde
2004-03-17 17:50:55 +00:00
grehan
22b3d270f1
Bring to working PIO state.
...
- use correct rid when allocating PCI mem resource
- ATA taskfile registers are indeed spaced 0x10 apart just like
the Macio ATA cell. Adjust offsets in ATA channel struct.
Tested by: Suleiman Souhlal <ssouhlal@vt.edu>
2004-02-29 06:01:16 +00:00
grehan
a059eb3a32
Work-in-progress for the 'Kauai' ATA device in Mac notebooks. The
...
device seems to be the macio ATA cell with a PCI front-end, and
has no relation to PIIX-style ATA/PCI devices.
2004-02-12 09:17:16 +00:00
grehan
171d04f980
- remove trailing whitespace
...
- fix compile warnings. badaddr() will go to a header file soon.
2004-02-11 07:44:56 +00:00
grehan
953792046b
- removed debug printf that was a false positive on non-OpenPIC systems
...
- white space nits
2004-02-04 04:53:09 +00:00
grehan
fd93cf8ef3
Use device alias "mpic" to locate the macio OpenPIC. This works
...
on the new 12/15/17" PowerBooks that don't have the "interrupt-controller"
property underneath "/chosen", which was the previous way of
searching.
2004-02-03 08:00:37 +00:00
grehan
8e1d4bce98
Catch up with ATA UMA changes
2004-01-15 23:52:32 +00:00
grehan
eb45b910df
Use a device identify entry point to attach to nexus, since the
...
nexus code no longer searches for interrupt controllers.
2004-01-13 11:25:40 +00:00
grehan
f31f435513
Make the OpenPic driver bus-independent, with attachments for
...
the MacIO chip and PSIM's IOBus. Bus-specific drivers should
use the identify method to attach themselves to nexus so
interrupt can be allocated before the h/w is probed. The
'early attach' routine in openpic is used for this stage
of boot. When h/w is probed, the openpic can be attached
properly. It will enable interrupts allocated prior to
this.
2004-01-13 11:24:36 +00:00
grehan
4208dc0071
Catch up with ATA changes by including <sys/sema.h>
2004-01-13 10:54:35 +00:00
grehan
f634df25eb
imac revA-D and beige G3 OpenFirmware uses the "ide" string for
...
ATA drives.
2003-12-10 08:58:48 +00:00
peter
d29883b254
Widen the enable/disable helper function's argument in line with the
...
ithread_create() changes etc. This should be mostly a NOP.
2003-11-17 06:10:15 +00:00
grehan
a7a354cc2b
ATAng requires <sys/taskqueue.h>
2003-09-22 11:55:02 +00:00
grehan
ebb4fc782d
Allow the interrupt controller to be probed - this picks up the
...
Heathrow PIC, while not affecting the OpenPIC.
2003-06-29 02:05:19 +00:00
grehan
8b71771e40
A module to handle the interrupt controller on Heathrow/Paddington
...
MacIO chips, found on older Mac G3's.
2003-06-28 08:52:49 +00:00
grehan
f852fade10
A module for the Motorola MPC106 system controller aka 'Grackle'
...
found on older Mac G3's.
2003-06-28 08:51:22 +00:00
grehan
a907ab9da4
Vastly simplify the macio ATA attachment, now that the register file
...
indirection is handled in the ATA common code.
2003-04-18 02:43:23 +00:00
grehan
bb63ad371c
Remove sparse addressing hack. The macio ATA driver no longer requires
...
this.
2003-04-18 02:42:27 +00:00
grehan
99d692e01f
- Add PCI ID for Paddington i/o controller, used in old G3's
...
- Add ID for the Intrepid i/o controller, used in new 12"/17" PowerBooks
- put IDs in chronological order
2003-03-20 10:18:01 +00:00
grehan
47fb20d3f1
Catch up with ATAng changes
2003-02-24 03:12:30 +00:00
imp
cf874b345d
Back out M_* changes, per decision of the TRB.
...
Approved by: trb
2003-02-19 05:47:46 +00:00
benno
28054ea687
Oops. Include opt_ddb.h.
2003-02-06 11:07:39 +00:00
benno
205fd17b03
Add a driver that attaches to the gpio node of macio and allows you to enter
...
DDB when the interrupt button (aka the "programmer's switch") is pressed.
This isn't unfortunately an NMI, but it's a handy way to get into DDB
quickly if needed.
2003-02-06 10:59:06 +00:00
benno
4bfbbecf11
Add a cast to silence a warning.
2003-02-06 10:47:57 +00:00
benno
ba64b35fac
If a device tries to allocate an interrupt that's not on it's resource list,
...
assume that the child knows what it's doing and add it to the resource list.
2003-02-06 10:42:22 +00:00
benno
cd92290e8c
Rework of how memory resources are discovered and dealt with in macio.
...
- Store the OpenFirmware "reg" property in the macio ivars.
- Use a struct to define the structure of a "reg" property entry.
- Discover all memory ranges, not just the first.
- In ata_macio, manage our own range and hand out our own allocations using
bus_space_subregion.
- Fix bus_space_subregion to handle subregions of sparse maps.
2003-01-30 11:28:29 +00:00
alfred
bf8e8a6e8f
Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.
...
Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
2003-01-21 08:56:16 +00:00
benno
c240e83a3c
Allocate interrupts from the resource list.
2003-01-09 09:15:42 +00:00
benno
ee721e5aaa
- Remove the ignore list and replace it with a quirk list of sorts.
...
- Add a quirk type for devices whose interrupt properties are actually
attached to their children.
- Flag the "escc" (zs-alike serial controller) device as having this quirk.
- Rework the interrupt discovery code to deal with devices that have more than
one interrupt.
2003-01-09 06:21:42 +00:00
grehan
7b0b5d2550
- remove unneeded includes
...
- fix big in use of rid for SYS_RES_IRQ
- catch up with ATA common code by adding lock function
2003-01-09 01:22:30 +00:00
grehan
b9926b1f0b
Driver for the macio south bridge, and ATA cell contained within.
...
Approved by: benno
2002-09-19 04:52:07 +00:00
grehan
cca4d56e84
softc and register defs for the UniNorth chip
...
Approved by: benno
2002-09-19 04:50:30 +00:00
grehan
91ea6a395f
- probe the UniNorth chip in addition to the PCI bridges
...
- enable GEM ethernet cell if present
- allow sparse address mapping for devices
Approved by: benno
2002-09-19 04:49:58 +00:00
benno
d842b432e7
Remove some dead code.
2002-07-10 09:46:49 +00:00
benno
b053cc9efe
Remove some unused includes.
2002-07-10 09:46:24 +00:00
benno
73aaaf9a29
Driver for the Apple UniNorth Host-PCI bridge.
...
This is in a PowerMac-specific subdirectory as it is hoped that we will support
more than just the PowerMac platform.
2002-07-09 13:34:09 +00:00