Commit Graph

146 Commits

Author SHA1 Message Date
abs eb73becae2 Ensure all INSTALL config files consistantly include PIPE_SOCKETPAIR,
MALLOC_NOINLINE, and VNODE_OP_NOINLINE. The exceptions are when they
include another config files that already defines the options, or if
they are for an embedded board, just define a few extra options, and
do not already define PIPE_SOCKETPAIR.
2002-07-05 13:40:10 +00:00
christos 3b50728cf4 MD systrace gluons. 2002-06-17 16:32:57 +00:00
lukem fde6ae6f04 Enable "pseudo-device clockctl" in all kernels, except
installation related kernels (INSTALL* and RAMDISK*).
This enables rc.conf(5) $ntpd_chroot to be used "out of the box"
2002-06-17 05:14:02 +00:00
augustss 136b14943f Add NL at end of file. 2002-06-05 06:32:21 +00:00
drochner d2b9876081 move initialization of the "struct pglist" returned by uvm_pglistalloc()
from the calling code into uvm_pglistalloc() itself for consistency
and easier error handling
2002-06-02 14:44:35 +00:00
eeh 0ef5e0455e Automagically install symbols and generate a loadable binary image when
building a kernel rather than as a separate target.
2002-05-30 15:24:57 +00:00
eeh fb36aee628 Add an INSTALL kernel with DEBUG and space for a miniroot. 2002-05-30 15:23:09 +00:00
eeh 4992f2adc9 Make this more GENERIC. 2002-05-30 15:22:16 +00:00
eeh 6230497489 Add cardbus support in case someone has a PCI->cardbus card. 2002-05-30 15:21:24 +00:00
eeh d3aa1ab1c4 Add a missing carriage return. 2002-05-16 23:21:55 +00:00
wiz f2fda839cd Comment out token after #endif.
XXX: Weird token here -- please double check.
2002-05-16 19:51:40 +00:00
thorpej 204183c0fa * Add "pcitag_t *pba_bridgetag" to pci_attach_args. This is set to
NULL for root PCI busses.  For busses behind a bridge, it points to
  a persistent copy of the bridge's pcitag_t.  This can be very useful
  for machine-dependent PCI bus enumeration code.
* Implement a machine-dependent pci_enumerate_bus() for sparc64 which
  uses OFW device nodes to enumerate the bus.  When a PCI bus that is
  behind a bridge is attached, pci_attach_hook() allocates a new PCI
  chipset tag for the new bus and sets it's "curnode" to the OFW node
  of the bridge.  This is used as a starting point when enumerating
  that bus.  Root busses get the OFW node of the host bridge (psycho).
* Garbage-collect "ofpci" and "ofppb" from the sparc64 port.
2002-05-16 01:01:28 +00:00
thorpej dada8613e1 Let machine-dependent code specify how to enumerate the bus.
Currently, everyone uses pci_enumerate_bus_generic().
2002-05-15 19:23:51 +00:00
matt f62dc5c664 Remove redundant declarations. 2002-05-13 07:04:24 +00:00
briggs 01cc8143e4 Bump symtab space. 2002-05-03 19:52:36 +00:00
atatat d1b3852365 Add the INCLUDE_CONFIG_FILE option to all config files. In config
files that are generic (ie, GENERIC, GENERICSBC, GENERIC32, ALL, or
ALPHA), it is uncommented.
2002-04-25 15:06:20 +00:00
mycroft 558b4fb278 Switch from de to tlp by default. 2002-04-17 02:22:41 +00:00
thorpej eedd94475c * Move the mii_bitbang attribute into dev/mii/files.mii
* Pull in dev/mii/files.mii from conf/files, rather than playing
  the magic "files include order" dance in N machine-dependent
  configuration definitions.
2002-04-16 20:50:16 +00:00
wiz 5040dc6d7d Remove last(?) traces of pmsi. 2002-04-16 11:49:54 +00:00
gmcgarry 6e066ba77a Add commented-out USERCONF option. Mainly useful for install media
and can be optionally enabled based on miniroot and ramdisk size
requirements.
2002-04-12 08:10:45 +00:00
lukem d213d804f7 Rename MEMORY_DISK_SIZE (formerly MINIROOTSIZE) to MEMORY_DISK_ROOT_SIZE,
which was suggested by Izumi Tsutsui <tsutsui@ceres.dti.ne.jp> as
being more consistent with what it's controlling...
2002-04-02 05:30:34 +00:00
simonb 8e523e0470 Fix pci/pchb attachments after the recent ibm4xx mainbus rototil. 2002-03-27 05:25:28 +00:00
martin 94881fb123 Rename ISDN devices, per discussion on tech-kern. The network devices
become ippp (ISDN ppp) and irip (ISDN raw IP). The character device now
are called: /dev/isdn (isdnd <-> kernel communication), /dev/isdnctl (dialing
and other control), /dev/isdntrc* (tracing), /dev/isdnbchan* (raw B channel
access, i.e. for user land PPP) and /dev/isdntel* (telephone devices, i.e.
for answering machines).
2002-03-16 16:55:51 +00:00
eeh de5252061e Use properties to pass around board-specific information rather than a
structure.
2002-03-15 20:59:23 +00:00
eeh d9df83b6a9 Delete files that have been moved to powrpc/ibm4xx. 2002-03-15 20:56:42 +00:00
eeh 6926a0dc66 Separate mainbus from pcibus. 2002-03-14 17:26:27 +00:00
eeh 2ea0541c6d Use <machine/dcr.h> 2002-03-13 23:11:33 +00:00
eeh 253a2ae2f4 Redirect to powerpc/include/ibm4xx/dcr405gp.h 2002-03-13 23:10:36 +00:00
eeh 3b27dc6be4 Use powerpc/include/ibm4xx/cpu.h. 2002-03-13 23:07:47 +00:00
eeh 90a4d6de36 Get rid of any references to PCI. 2002-03-13 19:37:44 +00:00
eeh 2949f98aba Install machine check trap handler. 2002-03-13 19:36:45 +00:00
eeh a2d1936614 Add cache_info offset into curcpu(). 2002-03-13 19:34:06 +00:00
eeh d9a7cb78c4 dcr.h has moved. 2002-03-13 19:32:25 +00:00
eeh f71b8e46fe CACHELINESIZE is going away. Use curcpu()'s cache_info instead. 2002-03-13 19:31:33 +00:00
eeh 38e180b078 This is now a pci controller driver that attaches to mainbus rather than
a pci-pci bridge.
2002-03-13 19:28:25 +00:00
eeh baf1e04c3c board_cfg_data is now in cpu.h 2002-03-13 19:27:02 +00:00
eeh 478fa29f6b Add a ppc4xx_tlbflags macro. 2002-03-13 19:26:07 +00:00
eeh a41c1f25cb Fixup comments. 2002-03-13 19:24:46 +00:00
eeh 353b53f75a Move DCR definitions here since they are implementation specific. 2002-03-13 19:22:46 +00:00
eeh 3b7b449d26 Separate mainbus from pcibus. 2002-03-13 19:19:49 +00:00
eeh 7f267b53d3 Adapt to the new mainbus. 2002-03-13 19:18:07 +00:00
eeh 0892a81974 Add a copyright and license. 2002-03-13 19:17:41 +00:00
lukem cd19d52695 * rename MINIROOTSIZE to MEMORY_DISK_SIZE, so that all md(4) options
are now consistently named
* fold opt_mdsize.h into opt_md.h
2002-03-10 19:56:37 +00:00
eeh 2f0ba3e1a2 More walnut-isms. 2002-03-05 22:02:25 +00:00
simonb 4324f37586 Use "#define<tab>". 2002-02-28 03:17:23 +00:00
tv b2ec8a78fc NEW_PIPE is no longer a configurable option (there's only PIPE_SOCKETPAIR,
inverted logic).
2002-02-26 21:44:29 +00:00
kleink d5fe2ac32f Declare the id argument to pci_conf_hook(9) as pcireg_t, which is more
appropriate.
2002-02-25 00:34:13 +00:00
wiz 37e458fa45 strategy should have an 'r'. Inspired by similar change in OpenBSD. 2002-02-19 17:09:40 +00:00
kleink 4691174484 Move the declaration of pci_conf_hook down to <machine/pci_machdep.h>;
a port may choose to implement it not as a function but i.e. as a
pci_chipset_tag_t function vector.
2002-02-11 17:24:00 +00:00
wiz 9baadd8ee5 "doesn't" should have an 's'. 2002-02-11 11:19:26 +00:00
wiz f78eb76cbe achive is not a good word. 2002-02-11 10:57:57 +00:00
wiz 3cc2ef9997 Update description for icsphy. 2002-02-10 17:36:52 +00:00
jdolecek 6d265bd894 add options PIPE_SOCKETPAIR to individual kernel configs
the option is commented out on everything but kernels I was able
to recognize as INSTALL-like or ones for small memory machines
2002-01-27 13:23:08 +00:00
manu 5f90ae55b5 Added clockctl 2002-01-12 14:52:40 +00:00
atatat f30d600bed Fix a couple of rcsids. 2001-12-09 05:02:21 +00:00
thorpej 636e9cd08b Add a "cacheline_size" argument to pci_configure_bus(). It is used
to set the cacheline size in the BHLC register.  This should be the
size of the largest D-cache line on a system.
2001-11-28 23:48:34 +00:00
thorpej 9d58f1fcb2 Rename NOCACHE -> PPC_4XX_NOCACHE to avoid conflict with the namei
flag of the same name.

From Frank van der Linden <fvdl@wasabisystems.com>.
2001-11-26 23:31:56 +00:00
lukem 03aef4723c cleanup:
options SPACE TAB
	makeoptions TAB
	psuedo-device TAB
	remove trailing whitespace
	replace multiple spaces -> tabs
	options "FOO" -> options FOO
	options "FOO=bar" -> options FOO=bar
	options "FOO=\"bar\"" -> options FOO="\"bar\""
2001-11-20 12:56:17 +00:00
lukem 99bccc3cab - pull in opt_kgdb.h where necessary
- replace opt_kgdb_machdep.h with opt_kgdb.h
- defparam opt_kgdb.h:
	KGDB_DEV KGDB_DEVNAME KGDB_DEVADDR KGDB_DEVRATE KGDB_DEVMODE
- move from opt_ddbparam.h to opt_ddb.h:
	DDB_FROMCONSOLE DDB_ONPANIC DDB_HISTORY_SIZE DDB_BREAK_CHAR SYMTAB_SPACE
- replace KGDBDEV with KGDB_DEV
- replace KGDBADDR with KGDB_DEVADDR
- replace KGDBMODE with KGDB_DEVMODE
- replace KGDBRATE with KGDB_DEVRATE
- use `9600' instead of `0x2580' for 9600 baud rate
- use correct quotes for  options KGDB_DEVNAME="\"com\""
- use correct quotes for  options KGDB_DEV="17*256+0"
- remove unnecessary dependancy on Makefile for kgdb_stub.o
- minor whitespace cleanup
2001-11-20 08:43:19 +00:00
soren 662f877587 MAXSLP is defined to be a machine-independent scheduling parameter,
so move it into sys/param.h.
2001-11-15 18:06:11 +00:00
augustss c5477b70aa The wsmux pseudo device does not need a count anymore. 2001-11-13 17:54:46 +00:00
thorpej b1ec255377 Add a "firstbus" argument to pci_configure_bus(), indicating the
first bus number to use, rather than always assuming that we should
start at bus #0.
2001-11-09 19:29:12 +00:00
eeh d0f2652711 Overhaul the interrupt system to use hardware interrupts directly. 2001-11-08 23:28:13 +00:00
simonb e716956a0e Calculate the hardware interrupt to irq mapping array and irq mask from
the irq to hardware interrupt mask map instead of using two different
interrelated arrays and a bit mask that I've got wrong more than once
when updating by hand (including when I recently added the keyboard/mouse
interrupt mappings).  Now only the galaxy_intr_map[] array needs to
be updated when adding extra interrupts.
2001-11-06 01:26:47 +00:00
thorpej e727e3f180 Split elf32 vs. elf64 handling in loadfile(), including support for
each separately and explicitly.  BOOT_ELF is now BOOT_ELF32 and
BOOT_ELF64, and ELFSIZE should no longer be defined in loadfile_machdep.h.
2001-10-31 17:20:45 +00:00
thorpej 6fd8d278ed pci_conf_interrupt() takes bus/dev/pin, not bus/dev/func. 2001-10-29 23:33:42 +00:00
simonb f7144c4462 G/C unused enable_intr and disable_intr functions. Fix a whitespace nit. 2001-10-29 01:57:49 +00:00
simonb 46cb54843c Whitespace nit. 2001-10-29 01:53:59 +00:00
simonb 5f47f77815 Use wrteei to enable interrupts.
From Artem Belevich at Riverstone Networks.
2001-10-29 01:52:09 +00:00
simonb 6596d92841 Use the Walnut FPGA register offsets instead if the i8042 offsets for
the keyboard/mouse command and data ports (whee! they probe now), and
set up keyboard & mouse interrupts (untested for now).
2001-10-29 01:42:11 +00:00
simonb 90a347de11 If a pckbc is configured in, configure the FPGA so that separate
interrupts are used for the keyboard and mouse, interrupts are high
and level triggered (and enabled).
2001-10-29 01:37:29 +00:00
simonb cc4d8c1285 Set up irq16 (FPGA interrupt) and irq17 (SMI interrupt) for the keyboard
and mouse.
2001-10-29 01:32:59 +00:00
simonb ad762e99bf Expose (and augment) the FPGA registers, and add the static RAM address
and size.
2001-10-29 01:31:11 +00:00
eeh 6272e8b2ef Implement bus_space_mmap(). 2001-10-18 22:25:31 +00:00
reinoud e6b9c3dd70 Fix typo... 2001-09-17 15:57:00 +00:00
briggs c50646a1f3 Add adw 2001-08-29 17:37:47 +00:00
eeh 2879b54794 Enable some additional useful options like NFS_SERVER and RAID. 2001-08-28 02:43:49 +00:00
simonb 2d4d9f7fdc Stop pci_configure_bus() from mapping PCI expansion ROMs. Fixes problems
with at least some sip (and possibly siop) cards on the walnut.
2001-08-28 01:35:06 +00:00
simonb 47bb32d470 Use the common Makefile.powerpc. 2001-08-26 11:00:07 +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
chs ba2c8088f4 use pmap_k* for buffer cache pages. 2001-08-24 04:34:25 +00:00
wiz 2f10ae1421 bcopy -> memcpy, bzero -> memset 2001-07-22 14:58:20 +00:00
thorpej babefc5331 Add BUS_DMA_READ and BUS_DMA_WRITE flags, that hint the back-end
at dmamap load time that the mapping will be used for a unidirectional
transfer of the specified direction.
2001-07-19 15:32:10 +00:00
abs 01b024cd5b Standardise TCP_COMPAT_42 as commented out, grouped with other COMPAT options,
and with the comment '4.2BSD TCP/IP bug compat. Not recommended'
Add commented out 'TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG'
(All hail amiga and atari which make some attempt to automate the
multiplicity of config files...)
2001-07-08 16:32:12 +00:00
simonb 78cdef0bfc Move on-chip 405GP devices to powerpc/ibm4xx/dev. 2001-06-24 02:13:37 +00:00
simonb 0bc879bff8 Update some includes, note that there can be more than one emac on some
of the NP processors.
2001-06-24 01:19:17 +00:00
simonb 98120079fb ibm405gp.h also includes emac register definitions, remove them from here. 2001-06-24 01:18:16 +00:00
simonb 4e71ca0f12 Use 405GP PVR value from ibm405gp.h, not a local #define. 2001-06-24 01:16:18 +00:00
simonb 6d4b6ead83 Update for walnut.h/ibm405gp.h changes. 2001-06-24 01:15:41 +00:00
simonb 8980655597 Move 405GP registers, addresses and other info to ibm405gp.h. Leave only
board-specific addresses and other info in walnut.h.
2001-06-24 01:13:11 +00:00
simonb e3030308b1 Comment out de* and uncomment the TLP_MATCH_* options. 2001-06-24 01:06:02 +00:00
simonb 2b987a894d Use a few more header defines instead of magic numbers.
Wrap some longer lines.
2001-06-22 13:21:35 +00:00
simonb 7b9237cb08 White space nit. 2001-06-22 11:42:33 +00:00
simonb 4a8066748f Use register names from <machine/walnut.h> and not magic numbers. 2001-06-22 11:37:49 +00:00
simonb c32976ecd7 Make this work without DDB configured in. 2001-06-22 11:36:05 +00:00
simonb 18b2f7e6a1 Add a port to IBM's PPC405GP Reference Board (the "walnut")
by Eduardo Horvath and Simon Burge of Wasabi Systems.

IBM 4xx series CPU features:
 - New pmap and revised trap handler.
 - Support on-chip timers, PCI controller, UARTs
 - Framework for on-chip ethernet and watchdog timer.
General PowerPC features:
 - Add in-kernel PPC floating point emulation
 - New in{,4}_cksum that is between 1.5 and 5 times faster than the
   old version depending on CPU type.
General changes:
 - Kernel support for generic dbsym-style symbols.
2001-06-13 06:01:44 +00:00