Commit Graph

1127 Commits

Author SHA1 Message Date
drochner
a5a5473c25 remove now unnecessary "pci_enumerate_bus" definitions 2004-07-29 16:55:25 +00:00
atatat
f68a9f1ff2 Add "options SYSCTL_INCLUDE_DESCR" to a lot of configs, but commented
out in most of them.
2004-07-15 03:53:44 +00:00
manu
e317692907 When the keyboard type is unknwon, don't attach both ADB and USB, as the
kernel will panic if an USB keyboard is plugged later.

Of course there will be a problem on a desktop machine with an USB attached
keyboard, but that cannot be fixed without access to such a machine..
2004-07-03 16:24:57 +00:00
bouyer
21e9a36edc Add options P1003_1B_SEMAPHORE
to all GENERIC-like kernel config files where SYSV* options were already
present (commented out if the SYSV* options are commented out).
Fix lib/25897 and lib/25898.
2004-06-28 21:07:47 +00:00
abs
bd8eb3b5ed Add (commented out) ALTQ options to all GENERIC-like files 2004-06-26 07:32:05 +00:00
mrg
b83f6fa528 Add re; Realtek GbE. 2004-06-22 16:28:28 +00:00
itojun
596aec9a47 have pf and pflog pseudo-device (commented out).
reviewed by matt, perry, christos
2004-06-22 14:09:49 +00:00
jmc
84fafa3db5 Ignore errors on some rm -rf's for platforms that aren't quite
POSIX compliant
and return errors on r/o source (FreeBSD) for -rf. Fixes PR#25022
2004-06-21 18:20:08 +00:00
manu
a7a2220651 We used to look in psuedo-hid (with a typo) device for the keyboard. On
newer machines (iBook G4), it is in pseudo-hid (without typo), and there
are no `adb-kbd-ihandle or `usb-kbd-ihandles methods. In that situation,
just try to attach anything we can.

This patch fixes spurious inputs on iBook G4.
2004-06-20 21:02:07 +00:00
manu
72f86bef61 We used to look for the interrupt controller through the "interrupt-controller"
property of "/chosen" node in OF tree. On newer machines (e.g: iBook G4),
this property does not exist. We look for the node "mpic" as a second attempt
after a failure in /chosen.

This makes the iBook G4 keyboard almost usable (there are still some spurious
inputs on system startupi)
2004-06-20 20:50:13 +00:00
christos
c22e4ed8cd ptm is now mandatory, depends on pty, and can be disabled with -DNO_DEV_PTM 2004-06-18 15:02:29 +00:00
christos
0399e839cf Add pseudo-device ptm on all the generic flavored kernels. 2004-06-16 15:07:39 +00:00
schmonz
5f5633de40 Support userconf(4) ("boot -c"). Reviewed by Bill Studenmund. 2004-05-31 03:22:45 +00:00
thorpej
2ecdd552dc Add the notion of "shadow registers" to the wdc driver. These shadow
registers are registers that overlap with others on many controllers, but
which may actually be distinct on some controllers.  Right now, the two
shadows are:

- wd_status (usually overlaps wd_command)
- wd_features (usually overlaps wd_error)

Add a new helper function, wdc_init_shadow_regs(), used to initialize
the shadow register handles on controllers where they do actually overlap.

Partially from Jordan Rhody @ Wasabi Systems, Inc.
2004-05-25 20:42:40 +00:00
wiz
b83c30c098 Remove UCB ad clause from tsubai's license.
Ok'd by tsubai and board.
2004-05-12 00:34:25 +00:00
kleink
7b3b647647 Factor out W{CHAR,INT}_{MAX,MIN} into their own header file. 2004-05-08 21:51:47 +00:00
fair
75bfa594cb Protect against multiple inclusion (kdump, ktruss, etc., make
procedures are not smart enough to spot this file as being the same
when it appears in both include/{macppc,machine}/grfioctl.h
2004-04-25 21:57:51 +00:00
kleink
0e5d242328 Update for new pci_devinfo(9) signature. 2004-04-24 15:49:00 +00:00
itojun
6123043789 pass string length (= boundary info) to pci_devinfo so that we do not run over
the end of memory region
2004-04-23 21:13:05 +00:00
matt
62fc149c0b Make this compile with XNS enabled 2004-04-18 23:32:21 +00:00
aymeric
8f2774036c . add a missing call to lockinit() in apmattach()
. while here, explicitly initialize three softc variables to 0
2004-04-15 11:03:15 +00:00
matt
a9903fcc11 When linking, use ${_MKTARGET_LINK} so that MAKEVERBOSE=1 looks right. 2004-04-09 04:01:42 +00:00
matt
2ce2389229 Deal with OFW trees that have interrupt nodes without an #address-cells
property.  Treat them as if they had such a property but its value was 0.
2004-04-08 23:58:24 +00:00
mrg
f87752ad3b enable "INSECURE" kernel option so that GENERIC kernels are capable of
running XF4 servers.  while this isn't the best solution, it is the only
one we have for the forseeable future, and there is long-standing precedent
in the i386 port.
2004-04-02 14:06:23 +00:00
matt
7a72576c33 Move to softintr__init to cpu_startup. 2004-04-01 16:57:45 +00:00
aymeric
83d29714cc delay(): use =&r instead of =r for a temporary register as suggested in
PR #24830. The bad reuse of the register was actually triggered by using
no optimization at all.
pmap_subr.c is the only file that still requires at least -O to compile
into working code (the proper fix would be to write almost all of
pmap_zero_page() in assembly). The rest of a macppc kernel requires only
-finline now.
2004-03-29 08:06:12 +00:00
matt
a1d9764403 Add SMBFS/nsmb 2004-03-29 07:47:57 +00:00
kristerw
a53ff5c8f3 Add the wsmux pseudo-device. This will make the adb keyboard work
even if the heuristics in the console attachment code fail to
identify the keyboard type.

This should fix PR 22317 and part of PR 24778.
2004-03-29 01:46:03 +00:00
kristerw
a5892fecd3 Add "wdc* at pci? dev ? function ?". 2004-03-29 01:36:49 +00:00
matt
27b002601f Enable generic software interrupts on macppc. 2004-03-25 18:52:25 +00:00
matt
6fbc543513 Don't call hardclock until cpu_initclocks has been called. 2004-03-25 18:44:57 +00:00
matt
653cfe6dbc Add latent generic soft interrupt support. 2004-03-24 19:42:04 +00:00
wrstuden
58472c3385 Have Locore zero out the bss (which includes our stack) BEFORE
we start calling into C code. Previously we called memset() in our
C code. Unfortunately the compiler would sometimes store local variables
on the statck, which got killed by the memset(). Oops!
2004-03-17 23:32:22 +00:00
wrstuden
86948e4bf1 Bump version to help track down issues with kernel loading. 2004-03-17 20:41:17 +00:00
dyoung
4ccb1f5236 Add a 'tags' target to macppc. 2004-03-13 05:55:40 +00:00
wrstuden
74fec3bc40 Fix ofwboot to deal with larger kernels. Rather than loading at
0x6?0000, load at 0xe00000. This gives us room for around 13 MB of
kernel, as opposed to the current 5 MB (0x600000 - 0x100000).

No changes to load-base or real-base are needed due to this change,
though machines that needed specific OFW settings before (OF 1.x
and 2.x) this change still need those settings.

Partially revert revision 1.25 -> 1.26 of ofwboot/Makefile & friends.
We do not need to distinguish between where ofwboot and ofwboot.{elf,xcf}
load; they are both fine loading somewhere other than load-base.
2004-03-12 19:13:37 +00:00
kleink
9ff09d5dff Pull in SPRs via <powerpc/spr.h> in this single instance, and dispose of
<machine/spr.h> again.
2004-03-02 00:35:54 +00:00
wiz
85746c6759 Spell interrupt with two rs. From Peter Postma. 2004-02-24 15:16:04 +00:00
wiz
d20841bb64 Uppercase CPU, plural is CPUs. 2004-02-13 11:36:08 +00:00
jdolecek
6c14651ea0 cleanup old lpt(4) attachment, and glue ppbus in so that they can coexist:
* lpt device is defined in MI place (dev/ppbus/files.ppbus), dev/ic/lpt.c
  is included there too; dev/ic/lpt.c is not included if ppbus is
  configured or if there is alternative platform lpt (like for pc532)
* g/c MD lpt definitions and custom puc/upc attachments,
  glue moved to conf/files and dev/pci/files.pci respectively; remove
  device lpt definition from dev/isa/files.isa
* add ppbus parport attribute, atppc device attachments, adjust plip and lpt
  glue
2004-01-20 19:58:00 +00:00
jonathan
abb59e6f0c Add support for opencrypto, PCI accelerators to sys/arch/*/conf/GENERIC
files for machines I know to have genuine PCI slots.  As sent to tech-kern
for feedback in December 2003. Based on feedback, opencrypto is commented
out in the macppc GENERIC (due to absense of GENERIC_SOFTINT support),
and added to the sparc64 config (sys/arch/sparc64/conf/GENERIC32).
2004-01-14 22:29:03 +00:00
tsutsui
ca7e52eb4f Preserve kernel symbol table not only #if defined(DDB) but
also #if NKSYMS > 0 || defined(LKM).
Should fix port-macppc/21742.
2004-01-14 14:08:40 +00:00
dbj
e3b3654ebb attempt to make these compile again after recent wdc changes. 2004-01-04 07:08:13 +00:00
thorpej
a963286f8d More wdc_channel structure member namespace cleanup:
- channel -> ch_channel
- wdc -> ch_wdc
2004-01-03 22:56:52 +00:00
thorpej
5bd80d8373 Rename "struct channel_softc" to "struct wdc_channel". 2004-01-03 01:50:52 +00:00
thorpej
527c829fa0 Rename:
- wdc_xfer to ata_xfer
- channel_queue to ata_queue
and move them to <dev/ata/atavar.h> so they can be used by non-wdc ATA
controllers.  Clean up the member names of these structures while at it.
2004-01-01 17:18:53 +00:00
thorpej
0beb075071 Simplify allocation of the channel queue. 2003-12-31 02:50:34 +00:00
manu
fe7a5ddf22 Fix PowerPC ports build with KGDB. 2003-12-30 11:23:20 +00:00
mjl
054d8c4946 Initialize some auto vars to appaise gcc3. 2003-12-27 13:34:36 +00:00
grant
9427a0c717 add support for the Keywest I2C and snapper audio device, as found on
some iBook and PowerBook models.

this driver was written by Tsubai Masanari and further hacked on by
Jared D. McNeill to work on his iBook.

the driver is limited (master volume control only, and I haven't
tested recording) but has been functioning perfectly on my PowerBook
g4 DVI (ivory) for some time.

ok'd by matt.
2003-12-27 02:19:34 +00:00