Commit Graph

57 Commits

Author SHA1 Message Date
garbled d974db0ada Merge the ppcoea-renovation branch to HEAD.
This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree.  Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches.  The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
2007-10-17 19:52:51 +00:00
he f41cb0f1b1 Use mtod(m, char *) when you want to do pointer arithmetic on the result. 2007-03-05 22:36:16 +00:00
christos 53524e44ef Kill caddr_t; there will be some MI fallout, but it will be fixed shortly. 2007-03-04 05:59:00 +00:00
garbled aa0bc147ae A bit of clock rototill. It's safer to detect things known by the
residual with the pnpbus probes, than it is to do it with raw isa probes,
so I've replaced the isa mkclock and mcclock code with a pnpbus attachment.

While writing the mkclock code, I realized that on motorola prep machines
the mkclock uses the same port range as the nvram part. (it's actually
the same chip/part).  This was causing the nvram not to work on those
machines.  Now the nvram code will recognize this, and wire up the
mkclock as well.  The mkclock probe is just a stub probe used to
pre-detect the fact that this is one of those machines.
2006-06-15 18:15:32 +00:00
tsutsui e684286988 Fix a botch on ANSIfy. 2006-06-09 18:11:58 +00:00
elad 8ccb6c9341 integrate kauth. 2006-05-14 21:55:09 +00:00
garbled cfbb4ec285 More KNF. That should be the rest of the .c files. 2006-05-09 02:48:36 +00:00
garbled be39d7253e Switch prep over to evcnt(9). While I was here, I also switched it to
use struct cpu_info for the cpu stuff.  Tested on 7248 and 7043.
2006-05-08 17:08:34 +00:00
garbled 6434af65ce ANSIfy all these files.. just formatting changes.
Remove kbdreg.h.. this was part of pccons, and was apparently missed long
ago.
2006-03-17 05:33:33 +00:00
christos 95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
drochner 0717077eea The joystick driver is using mi timing code for many months.
Noone complained, so we can remove the unused md versions.
2005-02-18 15:39:17 +00:00
kent 93293b9ec7 ansify and KNF 2005-01-15 15:19:51 +00:00
yamt 18f717bb90 constify audio_hw_if, midi_hw_if, and radio_hw_if. 2004-10-29 12:57:15 +00:00
drochner 2db688402b adapt to ISA "unknown address" namespace separation (purely mechanical,
as far as "grep" reaches)
2004-09-14 20:32:48 +00:00
rjs 06b3d71b2a Use new isa_attach_args structures. 2004-04-24 23:32:08 +00:00
nonaka ff60b11847 missing new-line after mc146818_attach(). 2004-03-10 15:19:22 +00:00
kleink 591762a7d0 Insert a newline after autoconf output. 2004-03-01 23:49:12 +00:00
tsutsui e9dbe69e90 Set mcclock to BCD mode as before. Tested on 7248-133 43P. 2003-11-24 06:23:33 +00:00
tsutsui 4e8b58dd02 - Adapt mkclock_isa.c to MI mk48txx(4) changes.
- Switch mcclock_isa.c to use MI mc146818 driver.
- Use todr(9) interface with both todclock drivers.
2003-11-01 22:54:46 +00:00
agc aad01611e7 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
2003-08-07 16:26:28 +00:00
lukem ed51729135 __KERNEL_RCSID() 2003-07-15 02:54:31 +00:00
fvdl 6bd0c9f44d Move definition of ISA_DMA_BOUNCE_THRESHOLD to dev/isa/isareg.h. 2003-05-05 12:55:41 +00:00
thorpej c9228c8ddd Use PAGE_SIZE rather than NBPG. 2003-04-02 04:17:50 +00:00
thorpej 89bf5a8f8e Add trailing ; to CFATTACH_DECL. 2002-10-02 15:52:22 +00:00
thorpej a942508291 Use CFATTACH_DECL(). 2002-10-01 21:36:00 +00:00
thorpej f818766afe Declare all cfattach structures const. 2002-09-27 20:31:45 +00:00
gehenna 77a6b82b27 Merge the gehenna-devsw branch into the trunk.
This merge changes the device switch tables from static array to
dynamically generated by config(8).

- All device switches is defined as a constant structure in device drivers.

- The new grammer ``device-major'' is introduced to ``files''.

	device-major <prefix> char <num> [block <num>] [<rules>]

- All device major numbers must be listed up in port dependent majors.<arch>
  by using this grammer.

- Added the new naming convention.
  The name of the device switch must be <prefix>_[bc]devsw for auto-generation
  of device switch tables.

- The backward compatibility of loading block/character device
  switch by LKM framework is broken. This is necessary to convert
  from block/character device major to device name in runtime and vice versa.

- The restriction to assign device major by LKM is completely removed.
  We don't need to reserve LKM entries for dynamic loading of device switch.

- In compile time, device major numbers list is packed into the kernel and
  the LKM framework will refer it to assign device major number dynamically.
2002-09-06 13:18:43 +00:00
wiz 1b7f309f0a Correct misspellings of "failed". 2002-03-04 01:38:31 +00:00
kleink 5eb5b37d22 Add the same probe fig leaf as in the mk48txx attachment to prevent
false positives.
2002-02-26 15:28:38 +00:00
kleink 03cae416f5 Add an attachment for the MK48T18 RTC/NVRAM found on some Motorola boards. 2002-02-25 19:09:43 +00:00
kleink 6805e97fff Make the logic for wildcarding the I/O address actually achieve its purpose. 2002-02-25 00:04:49 +00:00
jdolecek f32b3f4f89 Reduce the massive code duplication regarding joy(4). Split it into
MI and MD parts, and make ISA/ISAPNP/PCI joy(4) attachments MI.
2002-02-02 18:37:38 +00:00
nonaka 3c6fc4ebff Fix panic at extent_free() in boot-time.
(ia->ia_io[0].ir_size is zero if noset iosiz in kernel config file.)
2002-01-21 16:26:58 +00:00
thorpej 3835413bc1 Overhaul of the ISA autoconfiguration code to support direct
configuration of devices logically attached to the ISA bus:

* Change the isa_attach_args to have arrays of io, mem, irq, drq
  resources.
* Add a "pnpnames" and a linked list of "pnpcompatnames" to the
  isa_attach_args.  If either of these members are non-NULL,
  direct configuration of the bus is being performed.  Add an
  ISA_DIRECT_CONFIG() macro to test for this.
* Drivers are not allowed to modify the isa_attach_args unless
  direct configuration is not being performed and the probe fucntion
  is returning success.
* Adapt device drivers -- currently, all driver probe routines return
  "no match" if ISA_DIRECT_CONFIG() evaluates to true.
2002-01-07 21:46:56 +00:00
soren 07c4b937eb prep has no special dependencies on pccons; remove. 2001-11-21 22:40:45 +00:00
augustss 1339e88a86 Add a new optional method, dev_ioctl, to the audio hardware driver interface.
It is called when an unrecognized ioctl() is performed on a device,
thus allowing ioctl()s that frob the hardware driver (like loading
microcode).
2001-10-03 00:04:47 +00:00
matt 550ffff41b Make all powerpc ports use a common Makefile.powerpc (except walnut)
Enforce -Wmissing-prototypes -Wstrict-prototypes for all ppc ports.
Split out macppc cpu support and make common to mpc6xx ports.  Make
other mpc6xx ports use it.  Add evcnts for mpc6xx traps.
2001-08-26 02:47:33 +00:00
wiz 2f10ae1421 bcopy -> memcpy, bzero -> memset 2001-07-22 14:58:20 +00:00
wiz fda9343e10 bcopy -> memmove 2001-07-22 14:57:50 +00:00
nonaka 87f63a4997 print elcr reg, if defined DEBUG 2001-06-20 14:11:45 +00:00
nonaka 7f44dfec92 Compile again. 2001-06-15 15:53:27 +00:00
nonaka 80e152f0fc Use new common bus.h framework. 2001-06-15 15:50:04 +00:00
wiz c03a48d64f withough -> without 2001-06-13 10:45:57 +00:00
scw 2963ff5c58 Add `l_poll' to `struct linesw' and provide an xxxpoll() entry point
in each tty driver to indirect through it.

This allows tty line-disciplines to handle poll(2) system calls.
2001-05-02 10:32:08 +00:00
tv e58532a4bf No-op commit to force update to a non-"-kk" revision. 2001-01-18 17:47:58 +00:00
tsutsui d78ca7c54a Add isapnp attachment for prep. 2001-01-05 17:49:43 +00:00
matt a8ea1009e7 Add ThinkPad 820 audio driver (attaches but does not yet work). 2000-12-06 23:42:34 +00:00
matt 70e44cf083 Rework bus_space to conform the PReP I/O & MEM limits. Add a few debugging
printfs concerning interrupts.
2000-11-27 08:53:54 +00:00
matt 03b44427da Make assym.h be generated again
Add pcmcia support to files.prep
Add isa_intr_alloc support.
2000-11-22 08:55:35 +00:00
thorpej e6fa7f2fc8 Move the ISA DMA cookie into isadma_machdep.c. 2000-11-15 19:31:35 +00:00