Commit Graph

51350 Commits

Author SHA1 Message Date
augustss
4d4da7e06a Fix typo in comment. 2001-11-21 12:25:55 +00:00
uch
df2b478d48 increase the value of maxusers to 16. 2001-11-21 11:28:09 +00:00
enami
eca8404326 Don't use __func__ as variable. It prevents compilation.
Use __FUNCTION__ instead.
2001-11-21 09:08:38 +00:00
augustss
1029005107 Pay more attention to if the HC is being unplugged. 2001-11-21 08:18:39 +00:00
itojun
c23ea6c341 update outgoing ifp, only if tunnel mode ipsec is used. this is to
honor IP_MULTICAST_IF setsockopt on ipsec-over-multicast.  sync with kame
2001-11-21 06:28:08 +00:00
itojun
bf755aea42 make it compilable without OHCI_DEBUG 2001-11-21 05:52:50 +00:00
soren
0cbd8ee484 pccons is not used by acorn32. 2001-11-21 03:43:13 +00:00
augustss
c907a8fbbd Add missing } 2001-11-21 02:47:07 +00:00
augustss
4f7b354305 Set up control xfers.
Handle xfer timeouts.
Better debug messages.
2001-11-21 02:44:30 +00:00
augustss
28a6a57942 Use a task to perform the timeout abort so we have a process context when
sleeping.
2001-11-21 02:41:18 +00:00
augustss
5506bb0f06 Some more debug stuff. 2001-11-21 02:39:31 +00:00
augustss
2478d1b320 Cast some args to bitmask_snprintf(). 2001-11-21 02:38:35 +00:00
enami
f7fa67fcfc Use round_page() instead of roundup(, PAGE_SIZE).
Suggested by chs@netbsd.org.
2001-11-21 01:30:04 +00:00
enami
14c47b61f9 Fix possible typo in comment (s/MAXALLOCSIZE/MAXALLOCSAVE/). 2001-11-21 00:58:08 +00:00
enami
6a043f1db9 Protect multi statement macro with do {} while (0). This is not cosmetic. 2001-11-21 00:55:39 +00:00
augustss
b171d0908b Create a special kernel thread to run the usb short lived tasks (instead
of using the device discovery threads).
2001-11-20 23:53:26 +00:00
thorpej
bcc50e9703 Use strncmp() when looking up volume files. 2001-11-20 23:09:45 +00:00
thorpej
c8f26da0bd - General code cleanup (and enable warnings).
- It's perfectly legal to have an 8 byte volume filename; the trailing
  NUL is not required in this case.
- Default the partition type to "4.2BSD", not "EFS".
2001-11-20 23:07:16 +00:00
manu
482b5bcec3 Removed unused (commented out) code 2001-11-20 21:50:13 +00:00
manu
675946fd1c Fixed the Linux signal trampoline and linux_sys_sigreturn(). Linux signal
delivery now seems fully functionnal.
2001-11-20 21:37:50 +00:00
rafal
52f4b0490c Stylistic fix to last. 2001-11-20 21:21:03 +00:00
augustss
9716a5f26d Don't bother with interrupts when being disconnected. 2001-11-20 21:12:46 +00:00
soren
3f54e2c74f Add stand to SUBDIR. 2001-11-20 18:37:00 +00:00
soren
0f71151d6e stand Makefile. 2001-11-20 18:36:31 +00:00
soren
1e6da897d3 Michael Hitch's volume header tool. 2001-11-20 18:35:22 +00:00
soren
5ecc88dc2f Correct previous, pointed out by mhitch:
makebootdev() sets not booted_device but booted_protocol, so test for that.
2001-11-20 18:06:40 +00:00
thorpej
f934d91c74 The 2nd SCSI controller is now supported; remove it from the TODO list. 2001-11-20 17:38:31 +00:00
augustss
a8de831b24 Support port indicator light. 2001-11-20 16:25:35 +00:00
rafal
6c04d91bae Post Jason's autoconfig cleanup, the DMA tags are actually passed in from
the parent, so we don't need to look at the innards of bus_dma anymore.
Also, remove the Todo item pertaining to autoconfig cleanup from the list
in the comments.
2001-11-20 16:10:49 +00:00
augustss
2f560c9410 Sanity check max packet lengths. 2001-11-20 16:09:01 +00:00
rafal
c4596a56c0 Fix up Jason's last cleanup (thanks for that, btw!!)... Don't attach
hpc child devices that don't match our systype.  Attempting to attach
a wdsc1 on my Challenge S locks the box hard.
2001-11-20 16:09:00 +00:00
augustss
7679101a11 Add a comment. 2001-11-20 16:08:37 +00:00
augustss
e5353fd3b5 Use longer reset for root hubs (as told in the spec). 2001-11-20 16:08:10 +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
augustss
8366f16a80 Don't wait for door bell interrupt when controller has been disconnected. 2001-11-20 14:28:44 +00:00
augustss
86e6ea35eb Update for new speed handling. 2001-11-20 13:50:07 +00:00
augustss
a598bed92e Simplify async list handling. 2001-11-20 13:49:23 +00:00
augustss
b38958f960 Use device speed in setup.
Simplify async list handling.
2001-11-20 13:49:07 +00:00
augustss
7e4459fe10 Keep track of device speed for USB 2.0. 2001-11-20 13:48:03 +00:00
augustss
482dbdf4e3 More USB 2.0 definitions. 2001-11-20 13:46:09 +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
fac48ee4de whitespace cleanup
add (commented out) RAID_AUTOCONFIG below raidframe entry
2001-11-20 12:46:15 +00:00
lukem
26930db20a regenerate for whitespace cleanup 2001-11-20 11:30:44 +00:00
lukem
fdd071b188 cleanup whitespace 2001-11-20 11:29:41 +00:00
lukem
5997b30883 remove trailing whitespace (including in generated files) 2001-11-20 11:26:10 +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
chs
7305fb6b53 include COMPAT_AOUT_M68K stuff. 2001-11-20 07:48:31 +00:00
chs
77b6c48c4c support both ELF and a.out symbols for DDB. 2001-11-20 07:45:04 +00:00
enami
d4813d9d45 Just test if DEBUG_MEMLOAD is defined or not instead of testing its value. 2001-11-20 07:44:17 +00:00
enami
78bcf7e362 Cosmetic changes to previous commit. 2001-11-20 07:42:33 +00:00
enami
39ab348507 Call pr_log(PRLOG_GET) when POOL_DIAGNOSTIC is defined instead of DIAGNOSTIC
for consistency.
2001-11-20 06:57:04 +00:00
shin
07356ec733 improve r4k_sdcache_XXX_generic(). 2001-11-20 06:32:21 +00:00
lukem
399b58be96 whitespace cleanup 2001-11-20 06:00:09 +00:00
chs
8f0070db30 prepare for ELF:
- add "%" prefix to register names in assembly code.
 - use _C_LABEL() where necessary.
 - use packed structures where necessary to match the old ABI.
2001-11-20 03:19:41 +00:00
oster
d11d1bd6fe Cleanup some whitespace that indent got wrong a long time ago. 2001-11-20 02:37:29 +00:00
chris
9cc0f33345 Tidy up some memory copying cruft:
bcopy.S is no longer needed
memmove and memcpy were both stacking r0 and unstacking it to keep the return value, so push this down into _memcpy.
rename _memcpy.S to memcpy.S.
memmove.S is now just a placeholder otherwise the make system automagically adds a memmove.c file to libkern.
memmove is just another entry point for memcpy.
2001-11-20 00:29:19 +00:00
chris
04d6054972 Correct comment to avoid confusion, it really means 32 bits not 32 bites. 2001-11-20 00:22:33 +00:00
matt
77ab725cbb Enable DOZE mode for the 604ev. 2001-11-19 23:30:07 +00:00
matt
3ae5a183aa Fix boot device selection when booting from an alias. If the bootpath
isn't an OFW device, look it up in /aliases and substitute the bootpath
found into the string.  This allow device_register to do it's thing.
Key off the drive number, not the channel, in autoconf.c.  Closes PR#13756.
2001-11-19 23:22:48 +00:00
tsutsui
859356d03b Add a new quirk value PQUIRK_CAP_SYNC for SCSI1 devices which support
sync transfers, and set PERIPH_CAP_SYNC for them in scsi_probe_device().
As per discussion on tech-kern.
2001-11-19 22:50:00 +00:00
chris
165b023373 Give the idle loop a non-profiled entry, means it appears in profile info correctly (rather than all it's time being under remrunqueue)
switch_exit only needs to take 1 parameter, it loads the value of proc0 into R1 itself
Fixup some comments to reflect the real state of things.
Tweak a couple of bits of asm to avoid a load delay.
remove excess code for setting curpcb and curproc.
2001-11-19 20:38:58 +00:00
thorpej
ba9581a345 Reorder the device table to make the UART at J9 attach before the
UART at J10 (this is the same ordering the RedBoot uses, and also
is intuitive).
2001-11-19 19:08:33 +00:00
thorpej
2d7fd0a8b8 Implement pmap_update(). Currently it just calls cpu_cpwait(),
which ensures that TLB/cache operations have completed.
2001-11-19 18:41:32 +00:00
thorpej
887bcc078e Add a "cpwait" cpufunc, currently a nullop on all but XScale.
"cpwait" ensures that all coprocessor operations have completed
before returning.
2001-11-19 18:40:15 +00:00
soren
f270ebd294 Remove obsolete comment. 2001-11-19 17:39:54 +00:00
soren
b76c8dbfc9 Remove netbsd.high Ind* load address hack and use a separate
distribution GENERIC instead.
2001-11-19 17:39:31 +00:00
soren
db0828bda0 Remove driver options that don't belong in std.sgimips. 2001-11-19 17:38:24 +00:00
soren
3fe377a8b9 s/sgi/sgimips/
Remove __NO_SOFT_SERIAL_INTERRUPT.
2001-11-19 17:36:41 +00:00
soren
a36dfe843b Since we can get boot device information from both the boot loader
and the firmware, we allow it to be set only once, so the boot
loader is given highest priority.
2001-11-19 17:35:15 +00:00
soren
6413de2df4 Get L2 cache line size from ARCS.
Remove hack to disable (standard) L2 caches.
2001-11-19 17:33:02 +00:00
soren
ce57fc2bba Also check SystemPartition when finding boot device. Especially
when netbooting, it is practical to load the kernel directly.
2001-11-19 17:29:53 +00:00
soren
77a301e0e8 s/sgi/sgimips/ 2001-11-19 17:28:23 +00:00
soren
eefc317219 Remove duplicate struct scsipi_start_stop. 2001-11-19 17:18:08 +00:00
soren
27e3d258cd Floptical drive needs PQUIRK_NODOORLOCK as well. 2001-11-19 16:54:20 +00:00
lukem
4a269de9a1 fix compile error noted by itojun in [kern/14638] 2001-11-19 11:56:50 +00:00
lukem
5b0ef8ec1a be consistent and cache UFS_*NEEDSWAP results in more functions 2001-11-19 07:00:21 +00:00
chs
621a9ec9ea allocate and free page table pages explicitly instead of abusing
uvm_fault_wire().  this allows us to make pt_map non-pageable,
but we need to be careful in pmap_remove() not to attempt to
reference PTEs after the PTP has been freed.
2001-11-19 06:40:11 +00:00
lukem
677c5dd824 add RCSID and multiple inclusion protection 2001-11-19 05:37:49 +00:00
lukem
4b797c216a install fnv_hash.h 2001-11-19 05:31:39 +00:00
lukem
118c24bff7 In fnv_64_str(), replace u_register_t (which NetBSD doesn't have) with
Fnv32_t, since it's only going to store an 8 bit number anyway.
2001-11-19 05:29:02 +00:00
imp
98576a36a5 regenerate for 1.147 2001-11-19 05:25:22 +00:00
imp
cd84d65811 Merge from FreeBSD:
o Add devices from OpenBSD
	o Minor sorting problems in my sorting attempt.
	o A few additional -1 vendors for better card pattern generation.
	o Add Zoom Air_4000 (needs to be added to awi)
	o Add Netgear FA411 info (needs to be added to ne, plus quirks/fixes
	  to base pccard stuff before it will work).
	o Merges through FreeBSD 1.22
2001-11-19 05:24:26 +00:00
augustss
2db9b8d2c8 Start of pipe open routine. 2001-11-19 02:57:16 +00:00
enami
b55b4c7df5 Zero clear an array of vm_page * before passing it to VOP_GETPAGES(). 2001-11-19 02:44:27 +00:00
tls
b8b40ad95c Who are we kidding? Nobody installs over a DS-3, and I seriously doubt
that anyone installs over HIPPI either.  On the other hand, lots of people
would like to be able to install over their wireless networks or with their
Tigon Gig-E cards: so, let's synchronize this file's contents with the
modern world (at least a little bit).

Note that we really need to decide whether, as they used to be, the INSTALL
config files will be GENERIC with some lines *deleted* or whether they will
be GENERIC with some lines commented out.  Using both styles is bad, but I
haven't fixed it in this commit.
2001-11-19 02:17:18 +00:00
thorpej
6e69c4e62c Add mips_dcache_align and mips_dcache_align_mask variables that
contain information suitable for allowing other parts of the kernel
to determine if a memory region is aligned to the largest data cache
line size present in the system.

Add a mips_dcache_compute_align() function which must be called whenever
one of the data cache line size variables is changed, in order to
compute mips_dcache_align and mips_dcache_align_mask.
2001-11-19 01:28:07 +00:00
augustss
dfbba4149c Injecting events into a mux that is not open is not an error. 2001-11-19 00:37:22 +00:00
soren
ae27210d46 Insite Floptical drive needs PQUIRK_NOLUNS. 2001-11-19 00:22:47 +00:00
christos
56cffa29dc Add Titan 200H (from Wojciech Puchar) 2001-11-18 20:20:25 +00:00
chs
14b5abfd92 allocate and free memory explicitly rather than abusing uvm_map_pageable(). 2001-11-18 19:28:34 +00:00
thorpej
4609c9fbb4 r4k_sdcache_wbinv_range_index_32(): fix a typo (16 -> 32). 2001-11-18 18:48:55 +00:00
thorpej
e6cab2e799 Add 128b/l L2 cache ops. 2001-11-18 18:46:20 +00:00
tsutsui
c8f45396b3 Fix formatting of scsi_quirk_patterns[] and wrap long lines. 2001-11-18 17:22:43 +00:00
augustss
99c9ca8ab5 ANSIfy driver. 2001-11-18 17:15:48 +00:00
augustss
bf5b461387 Don't use a static variable in the power hook. It doesn't work with more
than one device.
2001-11-18 16:59:08 +00:00
bjh21
5fbb068685 Remove printf from pmap_clear_modify; it triggers too often. 2001-11-18 15:57:23 +00:00
bjh21
b5dff60f89 Several changes (sorry!):
Refuse to clear the modified bit on a page if it has a writeable kernel
mapping.  I'm not sure this is the right thing to do, but since further
writes to the page won't set the bit again, it's safer than clearing it,
and makes NFS writes work properly.

Add debugging code for modified-bit emulation, which checksums
allegedly-unmodified pages to see if they're _really_ unmodified.
Disabled by default because it's slow.

In the process, fix a bug in pv_release whereby the modified bit for a
page got cleared when its last mapping was removed.  This seems to finish
the NFS write fixes started by the first change above.
2001-11-18 15:47:36 +00:00
kleink
81611660e5 Fix printf format in DEBUG case. 2001-11-18 15:30:43 +00:00
tsutsui
aca8e01877 - Use MI ADAPTER_REQ_SET_XFER_MODE callback
- Move values in sc_sync[] member to sc_tinfo[]
- Change some u_int8_t values to int
- Remove unused wide negotiation states
- Misc cleanup
2001-11-18 14:50:11 +00:00
tsutsui
689089f7a9 - Use MI ADAPTER_REQ_SET_XFER_MODE callback.
- Nuke some magic numbers.
2001-11-18 14:33:10 +00:00
jdolecek
1dae310858 fix typo 2001-11-18 13:48:00 +00:00
jdolecek
bf65eb50af add appropriate cast to debug printf 2001-11-18 13:29:29 +00:00
bjh21
0d20115da8 Match multiple-include-protection macros to name of file. 2001-11-18 13:10:57 +00:00
bjh21
306ca6424a Roll back last change. Acorn32, being a major port, shouldn't switch to ELF
until the ABI is finalized.
2001-11-18 13:09:27 +00:00
tsutsui
acd87a7687 Misc cleanups:
- correct trm_clock_period[] value
 - pass BUS_DMA_{READ,WRITE,STREAMING} to bus_dmamap_load() as appropriate
 - make sure to call bus_dmamap_unload() even after request sense
 - saved srb params on request sense do not seem to be used,
   so remove them from struct trm_srb
 - handle target status more properly in trm_srb_done() and no need
   to handle error retry in lower driver layer
 - fix some comments

XXX Maybe need more cleanup around TQING for MI SCSI callback..
2001-11-18 13:02:30 +00:00
thorpej
38b076b60c zsc does not needs-count 2001-11-18 08:24:33 +00:00
thorpej
431af33735 Tweak for HPC autoconfig changes. 2001-11-18 08:21:38 +00:00
takemura
1d1d5c87af Rewrite bus stuff with method table in the bus tags. 2001-11-18 08:19:39 +00:00
thorpej
be010c72ef * Clean up HPC autoconfiguration a little. Pass device register and
DMA register offsets, as well as IRQ, to children.  Use direct
  config.  Use machine type/subtype to determine which devices are
  present.
* Add support for the second SCSI controller on the Indigo2.
2001-11-18 08:16:15 +00:00
briggs
fd5f7080b3 Correct operation of non-pseudo-DMA mode. Used on 660 & 840 AV models.
From Takeshi Shibagaki<ie9t-sbgk@asahi-net.or.jp>.
2001-11-18 05:22:32 +00:00
thorpej
8edf2c6d98 * Add a callback to the front-end for the 33c93 driver to reset
the controller/SCSI bus.
* Implement controller/SCSI bus reset on SGI HPC3 SCSI using the
  "channel reset" bit in the SCSI DMA channel control register.
2001-11-18 05:14:38 +00:00
mrg
dbcf46ce8a match the linksys prism2 card. 2001-11-18 04:27:49 +00:00
mrg
9d4995d7d6 regen 2001-11-18 04:26:16 +00:00
mrg
fa216ca465 add entries to allow one to match:
The Linksys Group, Inc., Instant Wireless Network PC Card, ISL37300PRevA
2001-11-18 04:25:43 +00:00
simonb
0f3507ed9c White space nit. 2001-11-18 03:47:53 +00:00
someya
9c13958025 add autri (Trident 4DWAVE based AC'97 audio) 2001-11-18 03:24:38 +00:00
someya
275c5352b7 add Trident 4DWAVE based (4DWAVE DX/NX,SiS 7018,ALi M5451) PCI audio driver 2001-11-18 03:16:02 +00:00
augustss
0f70418027 Add more fields to hardware structs.
Add memory allocation for various data structures.
2001-11-18 00:39:46 +00:00
gmcgarry
2cabf5a2e2 Update for new RTC and HIL attachments. 2001-11-17 23:56:21 +00:00
gmcgarry
8efcc1d46b Convert hil to standard device attachment. 2001-11-17 23:53:37 +00:00
gmcgarry
4d380420ae Use new RTC attachment. 2001-11-17 23:51:03 +00:00
gmcgarry
d9b1140ca5 Merge some fixes from clock.c, revision 1.23. 2001-11-17 23:48:15 +00:00
gmcgarry
257f825d26 Device attachment for the real-time clock. 2001-11-17 23:38:32 +00:00
gmcgarry
3cf284349d Update for new intio parent interface. 2001-11-17 23:35:31 +00:00
gmcgarry
224cd45a75 Overhaul the intio device attachment. Devices are direct connected and
attached based on machine id.
2001-11-17 23:33:22 +00:00
gmcgarry
3acacb5fc1 Make hil interrupts come through the standard dispatch mechanism rather
than its custom handler.
2001-11-17 23:29:08 +00:00
gmcgarry
40aa97f8b1 For INTIO space, use an offset for the mapping rather than the physical
address.
2001-11-17 23:26:55 +00:00
gmcgarry
4b62b5b023 Don't try to mmap the framebuffer as executable. Fixes MMU faults
when executing the X server.
2001-11-17 23:25:04 +00:00
manu
86349adc0d Make it build again after recent MIPS cache code changes 2001-11-17 22:13:38 +00:00
tsutsui
11a1ddc5dd - make sure to call bus_dmamap_unload() even after request sense
- fix usage of scb flags
- misc cleanup
2001-11-17 21:26:12 +00:00
manu
cb5cba1cf3 Fixed typos 2001-11-17 20:49:14 +00:00
kleink
852f87fe13 i386_memio_mmap(): return -1 to indicate failure, not EOPNOTSUP. 2001-11-17 19:32:03 +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
perry
2928420f88 delint -- you can't cast an lvalue 2001-11-17 18:56:46 +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
perry
c8549493da (minor) delint 2001-11-17 18:55:11 +00:00
christos
e36e7f175a Add transmeta crusoe cpu support from toshi. 2001-11-17 08:21:43 +00:00
christos
79f74a0b0f Add transmeta crusoe cpu support from toshi's fiva patches. 2001-11-17 08:20:58 +00:00
simonb
f809eb7333 Set `flags' before being used in the WRITE() function. 2001-11-17 07:22:34 +00:00
perry
4c7e639df1 fix a trivial lint warning 2001-11-17 05:31:27 +00:00
lukem
576eed5512 Add new malloc(9) flag M_ZERO - zeros memory before returning.
From Poul-Henning Kamp's equivalent enhancement in FreeBSD.
2001-11-17 03:50:27 +00:00
augustss
1f6462461a Make it possible to report device speeds with ioctl(USB_DEVICEINFO). 2001-11-17 01:49:53 +00:00
augustss
25ffd2ae73 Regen. 2001-11-17 01:44:03 +00:00
augustss
c434bdf8c7 Yet another device. 2001-11-17 01:43:40 +00:00
thorpej
21c0578357 Walk the ARCS device tree to find the L2 cache size. 2001-11-17 01:19:58 +00:00
thorpej
1466b9ca1d Back out the last two changes I made to this driver -- some people
have reported lossage.
2001-11-17 00:56:04 +00:00
augustss
b2b2b2b448 Implement port reset sequence correctly. 2001-11-16 23:52:10 +00:00
christos
bdb84bd0cd Regen 2001-11-16 18:34:08 +00:00
christos
d10a585999 add another USR modem. 2001-11-16 18:33:35 +00:00
augustss
b10f58ec3e Add ehci. 2001-11-16 17:10:30 +00:00
atatat
bbd661c23d The four tools mkdep, strip, objcopy, and objdump are not part of the
defined toolchain if we're not using the new toolchain.  We need them,
so we add our own definitions here.
2001-11-16 16:15:08 +00:00
lukem
2ee0a3f232 move code to calculate size of direct for a given namlen to separate
DIRECTSIZ() macro, and use this to implement a (now shorter) DIRSIZ().
inspired by freebsd
2001-11-16 16:09:17 +00:00
augustss
f73c358f8c Add some more data structure defs. 2001-11-16 15:33:13 +00:00
bjh21
04e005d19a Don't bother setting lint flags. arm26 doesn't pass lint anyway, so we may
as well use the defaults.
2001-11-16 14:53:47 +00:00
bjh21
eff0c97bb0 Use the exciting new MI kernel building machinery on arm26. 2001-11-16 14:46:16 +00:00
bjh21
294f95152f db_interface.c:
Include <ddb/db_access.h> for db_read_bytes etc prototypes.
  Add prototype for db_trapper().
  Move prototypes for "machine" subcommands to db_machdep.h.
db_machdep.h:
  Add prototypes for "machine" subcommands.
2001-11-16 14:39:30 +00:00
bjh21
73dd1b11c1 Include <uvm/uvm_extern.h> for pagemove() prototype. 2001-11-16 13:48:33 +00:00
bjh21
4244e4f4ce Add a prototype for pmap_dump(). Since this function is only called from
DDB, there's no suitable header file.
2001-11-16 13:47:06 +00:00
junyoung
12b82871db Add pseudo-device wsfont, which is necessary to make wsfontload(8)
work.
2001-11-16 13:46:31 +00:00
bjh21
aacfb7f42c Include <sys/sysctl.h> for cpu_sysctl() prototype. 2001-11-16 13:41:58 +00:00
bjh21
77c5245c8f Fix names of bus_space_copy_region_1() and bus_space_copy_region_2(). 2001-11-16 13:34:03 +00:00
atatat
5386330b34 Add a MKDEP?=mkdep line so that depend targets will work again. 2001-11-16 13:14:10 +00:00
bjh21
6b12ec55b2 Add prototypes for undefinedinstruction() and resethandler(). 2001-11-16 13:12:06 +00:00
gmcgarry
e9ec95622b Remove unnecessary trailing argument. Now compiles with new toolchain. 2001-11-16 08:14:05 +00:00
augustss
3b323cfaae Better error message. 2001-11-16 02:21:54 +00:00
augustss
3db4a768d4 Handle devices that disappear during reset gracefully. 2001-11-16 01:57:47 +00:00
augustss
07ea2e28cb Recognize port status changes.
Hand over low and full speed devices to companion controller.
2001-11-16 01:57:08 +00:00
atatat
d5de3c2fb2 Abstract out a large chunk of the kernel build machinery so that new
build features (such as ross's DEBUGLIST) can easily be applied to all
ports.  This should reduce the complexity of each port's kernel
Makefile considerably.  Line counts:

     227 arch/i386/conf/Makefile.i386.orig
      98 arch/i386/conf/Makefile.i386
     227 arch/alpha/conf/Makefile.alpha.orig
      99 arch/alpha/conf/Makefile.alpha
     219 arch/sparc/conf/Makefile.sparc.orig
     102 arch/sparc/conf/Makefile.sparc
     215 arch/vax/conf/Makefile.vax.orig
     102 arch/vax/conf/Makefile.vax
     253 conf/Makefile.kern.inc

Roll i386, alpha, sparc, and vax over to the new build machinery.
2001-11-16 00:23:02 +00:00
augustss
122d2863d8 Add root hub emulation. 2001-11-15 23:25:09 +00:00
bouyer
1952efa437 Support Ultra/100 on CMD 0649. 2001-11-15 20:48:17 +00:00
thorpej
6b842c44f3 MACHINE_ARCH == arm on hpcarm. 2001-11-15 19:35:31 +00:00
thorpej
0b6370bfee Implement __cpu_simple_lock*() primitives using the SWP insn. Note
this insn is available only on ARM arch v3 and later (and 2a).  We
don't expect to be using these ops in the kernel on processors too
old to have SWP, and for userland uses (in e.g. a pthread library),
the kernel will simply have to trap and emulate the insn (it needs
to be "atomic", so a kernel trap of some sort will be necessary on
such platforms anyway).
2001-11-15 19:22:32 +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
b684cbc2a7 usbd_interface2device_handle() cannot fail. 2001-11-15 15:15:58 +00:00
lukem
2565646230 don't need <sys/types.h> when including <sys/param.h> 2001-11-15 09:47:59 +00:00
lukem
95c969f245 add RCSID 2001-11-15 07:03:28 +00:00
thorpej
1e6d430c86 Someone <sys/param.h> was deleted from the includes list. Add it
back so that this file compiles again.
2001-11-15 07:01:27 +00:00
lukem
1b455fb019 don't need <sys/types.h> when including <sys/param.h> 2001-11-15 06:37:15 +00:00
chs
a69c43b997 fix pmap_extract() to handle addresses with a PTP but an invalid PTE. 2001-11-15 05:16:41 +00:00
thorpej
283e0a4c6e We need to declare the "plcom" device in files.evbarm, since a
"plcom.h" header file needs to be generated for conf.c even for
non-Integrator kernels.
2001-11-14 23:47:51 +00:00
thorpej
6445977d84 Slight cleanup. 2001-11-14 23:02:02 +00:00
tv
48c09b6243 Work around <bsd.lib.mk> used for kernel libs in other places. Clean up
include paths.
2001-11-14 23:01:13 +00:00
mhitch
636eb23869 When loadfile() leaves the ELF header at the end of the kernel, it enables
erroneous code that tries to compute the end of the symbol table.  Disable
that for now so that kernels don't hang when booted from the disk.
2001-11-14 22:47:16 +00:00
tv
4dec0efa0b Preload <bsd.own.mk> before .undef DESTDIR. 2001-11-14 22:00:42 +00:00
tv
4446c00002 Undefine DESTDIR; we don't want the special DESTDIR <bsd.lib.mk>
handling for kernel libraries.

XXX this build method should be replaced by something more sane
2001-11-14 21:59:31 +00:00
matt
b0372f6f25 Add brgphy 2001-11-14 21:25:15 +00:00
thorpej
ceb42fbf3f This file is not used. 2001-11-14 21:17:17 +00:00
matt
a6d8d89acf Bump the default macppc MSGBUFSIZE to 12KB so we can get an entire
sequence of boot messages.
2001-11-14 20:55:34 +00:00
matt
34d4887431 Some #ifdef cleanup for DIAGNOSTIC/DEBUG/PMAPCHECK so that that many of
the expensive checks are skipped when (!DEBUG&&!PMAPCHECK) and all of the
light-weigth checks are skipped when (!DIAGNOSTIC&&!DEBUG&&!PMAPCHECK).
This bring pmap.o's text down from 21KB (with PMAPCHECK) to 18.5KB (DEBUG)
to 16KB text (!DIAGNOSTIC).
2001-11-14 20:38:22 +00:00
bouyer
0b74b95459 If the controller doesn't support UDMA, don't allow enabling UDMA via
config flags.
2001-11-14 20:18:11 +00:00
christos
88db539589 Make poll(2) ignore negative file descriptors (Bang Jun-Young). 2001-11-14 18:43:58 +00:00
thorpej
bd15cfaed8 Merge the thorpej-mips-cache branch onto the trunk. This is an
overhaul of how caches are handled for NetBSD's MIPS ports.
2001-11-14 18:26:21 +00:00
thorpej
af66038f73 Merge the thorpej-mips-cache branch onto the trunk. This is an
overhaul of how caches are handled for NetBSD's MIPS ports.
2001-11-14 18:15:10 +00:00
augustss
effc318eca Regen. 2001-11-14 17:50:44 +00:00
augustss
77a68c4bf2 Add another printer dongle. 2001-11-14 17:50:21 +00:00
hubertf
95bf3bc4cd add pseudo-device rnd - it's needed by sshd 2001-11-14 13:25:19 +00:00
thorpej
be13b85887 * Give the XScale its own cpu_control() entry point; we have to flush
the Branch Target Buffer of the BPRD bit changes.
* Enable Branch Prediction on the XScale by default.
* Don't invalidate the Branch Target Buffer explicitly. the i80200
  manual (section 5.1, Branch Target Buffer Operation) notes that
  manual software management of the BTB is unnecessary; it is flushed
  implicitly when:
     * processor resets
     * FCSE process ID is written
     * I-cache is invalidated
2001-11-14 01:00:05 +00:00
tv
5489b30b60 ${MAKE} print-objdir -> ${PRINTOBJDIR} 2001-11-14 00:58:48 +00:00
thorpej
91f49d269d Eliminate some duplicated code here (similar to XScale code):
* sa110_cache_purgeD() is the same as sa110_cache_cleanD() on the
  SA-1 -- make it an alias.
* sa110_cache_syncI() and sa110_cache_purgeID() are identical to
  sa110_cache_cleanD() on the SA-1, with the exception that the
  I-cache must also be flushed.  Save code duplication by moving
  the I-cache flush before the D-cache clean and letting it fall
  through.
2001-11-14 00:08:05 +00:00
chris
4d1b8d545e Sync to libc version of divsi3.S. This is to fix up the stack for 8 byte alignment. 2001-11-13 20:06:40 +00:00
tv
d4c01db697 Turn off kernel rcsids by default on a.out, but let it be turned on again
with the option USE_KERNEL_RCSIDS.  (On a.out, these strings are actually
allocated memory and loaded; on ELF, they exist in a non-loaded file section.)
2001-11-13 19:52:39 +00:00
augustss
b684acbf39 Add wsmux (it seems to work now). 2001-11-13 17:56:30 +00:00
augustss
c5477b70aa The wsmux pseudo device does not need a count anymore. 2001-11-13 17:54:46 +00:00
augustss
6a161b0a72 Add a DISGNOSTIC message. 2001-11-13 17:45:07 +00:00
tv
8be2d6667c Dummy commit (removed one blank comment line) to make sure that all the
libc .o's for syscalls are rebuilt.
2001-11-13 14:49:56 +00:00
lukem
43369f69d3 add RCSID 2001-11-13 13:33:44 +00:00
lukem
071697f107 fix RCSID 2001-11-13 13:32:34 +00:00
lukem
a4bae8b066 add/cleanup RCSID 2001-11-13 13:14:31 +00:00
lukem
13ac430285 add RCSID 2001-11-13 13:01:57 +00:00
lukem
0e9163223a cleanup RCSID 2001-11-13 13:01:22 +00:00
lukem
f61cbe7489 add RCSID 2001-11-13 12:51:12 +00:00
lukem
dca6ccc83f add/cleanup RCSID 2001-11-13 12:49:45 +00:00
lukem
b84f53efc5 add RCSID 2001-11-13 12:47:33 +00:00
lukem
05b019ba0f add RCSID 2001-11-13 12:24:11 +00:00
isaki
2108a5c977 Rewrite vs_query_encoding() using array. 2001-11-13 09:27:06 +00:00
isaki
c2e9ead40b Clean up debug messages. Separate it two debug levels. 2001-11-13 09:06:00 +00:00
augustss
cec12bf775 Remove trailing `b' in some numbers for lengths. It just makes them look
like hex.
2001-11-13 08:01:40 +00:00
lukem
3f7d8d47b6 add RCSID 2001-11-13 08:01:09 +00:00
augustss
d6e38a1474 More test for NULL pipes. 2001-11-13 07:59:32 +00:00
augustss
9dcae667ee Small changes to behaviour when disconnecting. 2001-11-13 07:57:22 +00:00
lukem
9d2580ff16 add RCSID 2001-11-13 07:56:39 +00:00
augustss
b93fa89e60 Fix pasto in a debug printf. 2001-11-13 07:56:04 +00:00
augustss
8b1e2b3b6d Add some #endif comments. 2001-11-13 07:55:30 +00:00
lukem
4be2902b43 regen for RCSID 2001-11-13 07:54:18 +00:00
lukem
6f230ccce0 add RCSID to generated .c file 2001-11-13 07:52:41 +00:00
lukem
9048aaae21 add RCSID 2001-11-13 07:48:40 +00:00
lukem
8b7bb91219 add RCSID 2001-11-13 07:38:28 +00:00
lukem
57119f25e5 cleanup RCSID 2001-11-13 07:35:02 +00:00
lukem
045ae768cb add RCSID 2001-11-13 07:30:37 +00:00
lukem
ab5d9d2b0c add RCSIDs 2001-11-13 07:24:43 +00:00
lukem
9ab2c47148 cleanup RCSID (to be consistent with use in rest of kernel) 2001-11-13 07:23:15 +00:00
lukem
a3746e00b7 add RCSIDs 2001-11-13 07:11:12 +00:00
lukem
cb1dc621e6 add/cleanup RCSIDs 2001-11-13 07:00:23 +00:00
lukem
7ba10b3532 add RCSIDs 2001-11-13 06:54:32 +00:00
lukem
640249d1e9 add RCSIDs 2001-11-13 06:28:55 +00:00
lukem
6a3181d38f add/cleanup RCSIDs 2001-11-13 06:26:09 +00:00
lukem
667807e40c add RCSIDs 2001-11-13 06:24:53 +00:00
chs
4b4425d13b some callers of ufs_bmaparray() in LFS depend on *nump being set to 0 for
direct blocks, so restore that behaviour.
2001-11-13 06:23:17 +00:00
lukem
139747fb15 add/cleanup RCSIDs 2001-11-13 06:17:46 +00:00
lukem
b589588216 add RCSIDs 2001-11-13 06:08:32 +00:00
lukem
98bd235d29 remove superfluous NSEQUENCER > 0 test 2001-11-13 06:07:13 +00:00
lukem
2bbe2de647 add RCSIDs 2001-11-13 05:32:49 +00:00
perry
9f8afd5252 Make the type of ports in the in*()/out*() routines u_long instead of
int. Massively reduced kernel lint, causes no harm. Discussed
extensively with christos and thorpej.
2001-11-13 03:27:50 +00:00
enami
e5a47b8cfa Include stdio.h when compiled in userland to pull in declaration of printf etc. 2001-11-13 03:12:44 +00:00
uwe
0c392b9e2f Move dvma_cachealign to cache.c where it belongs and declare it in
cache.h, so that kernel can be linked without iommu support (for the
sake of microSPARC-IIep that has a very different iotlb).
2001-11-13 03:04:50 +00:00
lukem
dab6ef8b56 add RCSIDs (including regeneration of files as appropriate) 2001-11-13 02:07:52 +00:00
lukem
4f2ad95259 add RCSIDs 2001-11-13 00:56:55 +00:00
lukem
64a432d965 remove unnecessary #if NFOO > 0 .... #endif wrappers 2001-11-13 00:49:35 +00:00
christos
d1dcd2f401 PR/8657: z@rentaboat.se: alarm takes more seconds that it can handle.
This is a followup to PR/14558.

    - itimerfix(9) limited the number of seconds to 100M, before I changed
      it to 1000M for PR/14558.
    - nanosleep(2) documents a limit of 1000M seconds.
    - setitimer(2), select(2), and other library functions that indirectly
      use setitimer(2) for example alarm(3) don't specify a limit.

So it only seems appropriate that any positive number of seconds in
struct timeval should be accepted by any code that uses itimerfix(9)
directly, except nanosleep(2) which should check for 1000M seconds
manually. This changes makes the manual pages of select(2), nanosleep(2),
setitimer(2), and alarm(3) consistent with the code.
2001-11-13 00:34:21 +00:00
lukem
ea1cd7eb08 add RCSIDs 2001-11-13 00:32:34 +00:00