simonb
4324f37586
Use "#define<tab>".
2002-02-28 03:17:23 +00:00
christos
6b030ee036
- define other DEV_ constants that the local port uses.
...
- delete cdev_decl(mm) since <sys/conf.h> does it.
2002-02-27 01:19:03 +00:00
kleink
5e6a2be4e0
For the time being, add a wrapper around GENERIC causing the tlp driver
...
to match the on-board 21040, which the de driver has issues with.
2002-02-26 19:02:50 +00:00
kleink
9fcf8c7e63
Add platform support for the Motorola Ultra Plus and Ultra 60x boards.
...
Note that this currently matches only the boards built into Bull Estrella
systems, as Bull chose to change the board identification string whose
original content is not known at this time.
2002-02-26 16:09:14 +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
326c1b225d
Move the ext_intr() variant using the board interrupt vector register
...
into common code; it is not specific to the 6050, and in fact not even
specific to IBM-built hardware.
2002-02-26 00:30:10 +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
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
kleink
6805e97fff
Make the logic for wildcarding the I/O address actually achieve its purpose.
2002-02-25 00:04:49 +00:00
kleink
5410bbdb16
In order to support both indirect PCI configuration space access as well
...
as direct-mapped PCI configuration space access (such as implemented on
the IBM 27-82650 PCI Host Bridge), switch to a function vector based
PCI configuration space access implementation. The appropriate PCI
chipset tag is provided by platform-specific code.
2002-02-24 13:19:06 +00:00
kleink
73cdf7f537
Get rid of cf_unit misuse.
2002-02-24 11:22:00 +00:00
kleink
5b6184e81b
Upon reflection, really choose the right pseudo-segment for PCI memory space.
2002-02-24 10:58:41 +00:00
kleink
50838c01e1
Move battable entries for I/O to their correct pseudo-segment offsets;
...
while BAT spills currently don't happen, it should be possible for the
handlers to find them at the expected address anyway.
2002-02-24 10:56:54 +00:00
wiz
37e458fa45
strategy should have an 'r'. Inspired by similar change in OpenBSD.
2002-02-19 17:09:40 +00:00
kleink
02530a3ece
When enabling hardware interrupts at the end of cpu_startup(), splhigh()
...
cannot be used to mask them off for deferred processing as autoconfiguration
hasn't even started and thus the IPL_HIGH mask hasn't been calculated yet.
Instead, set the current mask manually to all-masked using splraise().
2002-02-11 23:01:37 +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
kleink
db6b1776e2
prep_intr_reg is mapped in kva space, so make it vaddr_t.
2002-02-10 00:54:39 +00:00
kleink
8785df9eae
Oops, typo in previous, too.
2002-02-06 12:26:02 +00:00
kleink
ec9a0b843e
* Fix typos and misusage !PMAP_MAP_POOLPAGE mb_map allocation.
...
* Use pmap_kenter_pa() for mapiodev().
2002-02-06 12:24:48 +00:00
nonaka
5d557da31c
s/asm/__asm__ volatile/
2002-02-04 16:17:36 +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
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
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
oster
39b858e3bf
Add new RF_* options for RAIDframe bits that are no longer built by default.
...
While we're here, enable RAIDframe (and RAID_AUTOCONFIG) by default for
architectures that I'm comfortable can deal with it being on by default.
Also: bump the number of 'raid' devices from 4 to 8, since 4 seems to
be insufficient in practise.
2002-01-19 18:45:06 +00:00
manu
5f90ae55b5
Added clockctl
2002-01-12 14:52:40 +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
augustss
b53ea42bf0
Update for new uhidev device attachment.
2001-12-28 17:37:01 +00:00
martin
b506d6e135
Add PPPoE to all generic kernels that should be able to use it.
...
XXX TODO: do this for INSTALL kernels too, add sysinst support and make the
XXX needed binaries available on the ramdisk root fs.
2001-12-28 12:21:52 +00:00
gmcgarry
bdd225baa1
Add a blurb to the top of all GENERIC files. This serves three purposes:
...
- to clarify some terminology
- to clarify the intention of the GENERIC file
- to cross-reference some useful man pages
2001-12-14 05:34:45 +00:00
lukem
b0b0a32ad7
Set NOxxx= before <bsd.own.mk> is pulled in (even indirectly).
...
Otherwise the appropriate MKxxx=no won't be defined .
2001-12-12 12:24:19 +00:00
kleink
e1f611fa76
The MPC105 does not implement the IBM reference implementation's
...
Equipment Present Register (I/O port 0x080c), so perform L2 cache
detection here.
2001-12-12 10:18:48 +00:00
tv
8e6f7afb5b
MKfoo=no -> NOfoo
2001-12-12 01:48:43 +00:00
kleink
b52ac962b3
Add pci device.
2001-12-11 21:02:42 +00:00
kleink
a5abbc5b66
Add wsfont pseudo-device.
2001-12-11 20:49:18 +00:00
briggs
eca843c395
define __HAVE_NWSCONS for pckbc.
2001-12-10 22:42:54 +00:00
briggs
25e9f1f519
Provide basic bus_space_mmap(). Noted by self and in PR port-powerpc/14873.
...
This at least allows the compile to complete. There are still Issues with
vga_pci.c's assumptions about a PC-ish environment.
2001-12-10 20:30: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
lukem
ecb81c3f6d
- convert usage of "defopt" to "defflag" where the relevant option does
...
not support a value (e.g., it's to be used as "options FOO" instead of
"options FOO=xxx"). options that take a value were converted to
defparam recently.
- minor whitespace & formatting cleanups
2001-11-28 10:21:10 +00:00
atatat
2bf2c362fb
The bridge(4) pseudo-device no longer requires the port to
...
__HAVE_GENERIC_SOFT_INTERRUPTS, so add it back to all GENERIC configs.
2001-11-23 05:00:22 +00:00
soren
07c4b937eb
prep has no special dependencies on pccons; remove.
2001-11-21 22:40:45 +00:00
lukem
0fa231134c
- replace "defopt" with "defparam" for options which must take a value,
...
as config(8) will warn for value-less defparam options
- minor whitespace/formatting cleanup
- consolidate opt_tcp_recvspace.h and opt_tcp_sendspace.h into opt_tcp_space.h
2001-11-20 14:34:18 +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
kleink
81611660e5
Fix printf format in DEBUG case.
2001-11-18 15:30:43 +00:00
kleink
4a41ec8583
In fdopen():
...
* Defer deref'ing of `un' until it's been initialized.
* Kludge around a false-positive uninitialized warning.
Brought to you by the graces of GCC 2.95.3.
2001-11-17 19:00:25 +00:00
kleink
117651c65e
Can't pass temporary storage to an inline assembly statement as input
...
operand; debunked by GCC 2.95.3 as uninitialized.
2001-11-17 18:55:57 +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
tv
5489b30b60
${MAKE} print-objdir -> ${PRINTOBJDIR}
2001-11-14 00:58:48 +00:00
augustss
c5477b70aa
The wsmux pseudo device does not need a count anymore.
2001-11-13 17:54:46 +00:00
scw
45e7238a02
Bump the version numbers of all bootloaders which use loadfile_elfXX() now
...
that it tries hard to avoid backwards seeks.
2001-11-09 19:53:11 +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
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
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
manu
dea90b1ed2
Linux emulation is no longer experimental, removed comment
2001-09-12 21:05:37 +00:00
chris
0e7661f023
Update pmap_update to now take the updated pmap as an argument.
...
This will allow improvements to the pmaps so that they can more easily defer expensive operations, eg tlb/cache flush, til the last possible moment.
Currently this is a no-op on most platforms, so they should see no difference.
Reviewed by Jason.
2001-09-10 21:19:08 +00:00
tsutsui
6d1cb2df8e
Add pcn(4), sip(4) and tlp(4).
...
XXX epic(4) seems to have problem, while it works on macppc...
2001-09-05 11:54:43 +00:00
atatat
5f25c01eff
Comment out bridge pseudo devices from ports that don't
...
__HAVE_GENERIC_SOFT_INTERRUPTS. bridge(4) doesn't compile there.
2001-09-01 23:08:40 +00:00
atatat
97c67a9bae
Add bridge pseudo devices to GENERIC configs
2001-09-01 21:52:23 +00:00
briggs
c50646a1f3
Add adw
2001-08-29 17:37: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
chs
ba2c8088f4
use pmap_k* for buffer cache pages.
2001-08-24 04:34:25 +00:00
bjh21
ad2c12a28d
Bump version numbers of all bootloaders that use loadfile/ELF, to account for
...
my changes to symbol loading. I should probably have done this at the time,
but it's better late than never.
2001-08-02 12:24:05 +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
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
matt
6357fdafe8
Add PM_SR
2001-07-01 21:39:17 +00:00
darcy
ce0ec1e208
Add System V semaphore resource limits to each GENERIC file that has an
...
option for System V semaphores. It appears that there are no overrides
in the code and each file has the following added.
options SYSVSEM # System V semaphores
+#options SEMMNI=10 # number of semaphore identifiers
+#options SEMMNS=60 # number of semaphores in system
+#options SEMUME=10 # max number of undo entries per process
+#options SEMMNU=30 # number of undo structures in system
options SYSVSHM # System V shared memory
If anyone thinks that this is incorrect for any of these files, please
correct it.
Note - the i386 port was not forgotten. It was done separately.
2001-06-30 11:00:31 +00:00
nonaka
afd99dc0b2
Add ahc(4), fxp(4), rtk(4)
2001-06-24 17:40:07 +00:00
tsutsui
12e908657b
Add iha(4), which works as well on my 7248.
2001-06-23 03:09:20 +00:00
matt
e6ea394a3a
#include <powerpc/spr.h> Use SPR_HID0 in place of 1008
2001-06-23 02:12:34 +00:00
matt
f0a0494c33
Allocate mb_map is PMAP_MAP_POOLPAGE is not defined.
2001-06-20 15:25:02 +00:00
nonaka
a68ff290b1
Sync reality.
2001-06-20 14:42:39 +00:00
nonaka
79c7d30f6d
- Add "siop at pci" and related line.
...
- Add "options PCI_NETBSD_CONFIGURE".
2001-06-20 14:37:46 +00:00
nonaka
992a1d0be4
Seprate model depended code. (based on arc 'struct platform')
...
files.prep:
- add new files entry.
pci_machdep.c:
- use dev/pci/pciconf.c instead of mine for pci io/mem addr/intr fixup.
cpu.c:
- separate code
machdep.c:
- call ident_platform()
mainbus.c:
- call pci_configure_bus(), if defined PCI_NETBSD_CONFIGURE
ibm_machdep.c:
- for IBM PReP generic
ibm_6050.c:
- for IBM Personal Power Series 830/850
ibm_7248.c:
- for IBM RS6000/43P deppendency
2001-06-20 14:35:23 +00:00
nonaka
dccc50da3c
ANSI'fy
2001-06-20 14:19:28 +00:00
nonaka
87f63a4997
print elcr reg, if defined DEBUG
2001-06-20 14:11:45 +00:00
nonaka
595d6a40b4
Back out last changes.
2001-06-19 11:56:27 +00:00
nonaka
b9c1984c7e
Back out last changes.
2001-06-19 11:36:17 +00:00
simonb
43eba60849
Make all the ppc delay() functions the same - formating change only, no
...
code changes. Step one of a unified ppc clock.c.
2001-06-19 08:34:49 +00:00
nonaka
03e1e2dc99
Add bus_dma entry.
2001-06-18 14:04:39 +00:00
christos
0f380fac15
Add an e_trapsignal member to struct emul, so that emulated processes can
...
send the appropriate signal depending on the trap type.
2001-06-18 02:00:48 +00:00
nonaka
31794a5423
NEWPMAP
2001-06-17 16:01:28 +00:00
nonaka
b83f37566d
identified prep model. (I missed it...)
2001-06-17 15:59:57 +00:00
nonaka
5098ff59f6
identified prep model.
2001-06-17 15:57:11 +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
nonaka
3a3661fb58
Delete unused function.
2001-06-15 15:24:03 +00:00
thorpej
8eb3b954f1
Don't need to prototype child_return() here, it's in <sys/proc.h>.
2001-06-14 22:56:55 +00:00
wiz
c03a48d64f
withough -> without
2001-06-13 10:45:57 +00:00
tsubai
bee211fc53
Move "file .../bus_dma.c" line to MD place.
...
Add options PPC_MPC6XX on missed ports.
XXX I think PPC_OEA is better name.
2001-06-12 17:13:34 +00:00
chs
821ec03ed9
replace vm_map{,_entry}_t with struct vm_map{,_entry} *.
2001-06-02 18:09:08 +00:00
simonb
37326d639b
Rename assembly files that are pre-processed by cpp to use an S suffix.
2001-06-01 04:20:04 +00:00
mrg
67afbd6270
use _KERNEL_OPT
2001-05-30 11:57:16 +00:00
mrg
3783ca5d30
define _KERNEL_OPT as well as _KERNEL. we will use this in the future to
...
get kernel "opt_foo.h" headers, rather than _KERNEL && !_LKM.
2001-05-29 02:20:20 +00:00
kleink
7918542181
Need <lib/libkern/libkern.h>.
2001-05-28 15:53:51 +00:00
chs
11a9651c8f
replace vm_page_t with struct vm_page *.
2001-05-26 21:27:10 +00:00
lukem
33e8c1a04f
delint: don't try & return something from void pci_intr_disestablish()
2001-05-15 14:48:57 +00:00
soren
945b972563
PPC machine type tags haven't been used for a while.
2001-05-03 13:11:24 +00:00