Peter Grehan
57dc54db86
Catch up with __RMAN_RESOURCE_VISIBLE change
2004-07-01 07:59:08 +00:00
Peter Grehan
6c62609340
Move soft structs back to C files to avoid exposing rman fields
...
to clients now that it's protected with __RMAN_RESOURCE_VISIBLE
2004-07-01 07:56:56 +00:00
Peter Grehan
40cdee9dab
Catchup to now-required <sys/module.h> for PowerPC
2004-06-25 13:42:48 +00:00
Peter Grehan
50069af197
- Catch up with recent ATA changes.
...
- Remove trailing space in ata_macio.c
2004-04-23 23:39:53 +00:00
Peter Grehan
6611d6692f
Match the specific MPC106 host bridge PCI ID rather than all
...
generic host bridges: this avoids a race with the UniNorth
generic match.
2004-04-01 07:34:36 +00:00
Peter Grehan
2e428c5487
The end argument to bus_alloc_resource() should have been ~0 and
...
not ~1, but the call has been switched over to bus_alloc_resource_any()
which has the same effect.
Submitted by: Suleiman Souhlal <refugee@segfaulted.com>
2004-03-31 07:40:46 +00:00
Nate Lawson
5f96beb9e0
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
Peter Grehan
80bd99be33
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
Peter Grehan
321fd46031
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
Peter Grehan
475a183dd1
- remove trailing whitespace
...
- fix compile warnings. badaddr() will go to a header file soon.
2004-02-11 07:44:56 +00:00
Peter Grehan
78bdfb1f1c
- removed debug printf that was a false positive on non-OpenPIC systems
...
- white space nits
2004-02-04 04:53:09 +00:00
Peter Grehan
2894a94905
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
Peter Grehan
ec9db41566
Catch up with ATA UMA changes
2004-01-15 23:52:32 +00:00
Peter Grehan
73cb337c32
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
Peter Grehan
739af9bcb5
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
Peter Grehan
c576427c52
Catch up with ATA changes by including <sys/sema.h>
2004-01-13 10:54:35 +00:00
Peter Grehan
71bf803ad6
imac revA-D and beige G3 OpenFirmware uses the "ide" string for
...
ATA drives.
2003-12-10 08:58:48 +00:00
Peter Wemm
0bfbe7b935
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
Peter Grehan
250fe3a662
ATAng requires <sys/taskqueue.h>
2003-09-22 11:55:02 +00:00
Peter Grehan
fd05df3205
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
Peter Grehan
bd687ebf3b
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
Peter Grehan
4b7624a5f7
A module for the Motorola MPC106 system controller aka 'Grackle'
...
found on older Mac G3's.
2003-06-28 08:51:22 +00:00
Peter Grehan
da5dcc52fc
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
Peter Grehan
5f9dfe1e17
Remove sparse addressing hack. The macio ATA driver no longer requires
...
this.
2003-04-18 02:42:27 +00:00
Peter Grehan
0b86d93fe6
- 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
Peter Grehan
597dc6637a
Catch up with ATAng changes
2003-02-24 03:12:30 +00:00
Warner Losh
a163d034fa
Back out M_* changes, per decision of the TRB.
...
Approved by: trb
2003-02-19 05:47:46 +00:00
Benno Rice
658930c2c0
Oops. Include opt_ddb.h.
2003-02-06 11:07:39 +00:00
Benno Rice
d674899b66
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 Rice
4ad661f495
Add a cast to silence a warning.
2003-02-06 10:47:57 +00:00
Benno Rice
24b51ed09e
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 Rice
fe5e7c6b2b
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 Perlstein
44956c9863
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 Rice
3599b2baf7
Allocate interrupts from the resource list.
2003-01-09 09:15:42 +00:00
Benno Rice
30081705c6
- 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
Peter Grehan
1fbe1353ad
- 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
Peter Grehan
11b370b1bb
Driver for the macio south bridge, and ATA cell contained within.
...
Approved by: benno
2002-09-19 04:52:07 +00:00
Peter Grehan
51478d84b7
softc and register defs for the UniNorth chip
...
Approved by: benno
2002-09-19 04:50:30 +00:00
Peter Grehan
d48bbef30d
- 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 Rice
ec3772f3fd
Remove some dead code.
2002-07-10 09:46:49 +00:00
Benno Rice
3af09242a8
Remove some unused includes.
2002-07-10 09:46:24 +00:00
Benno Rice
98f8e6c099
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