Commit Graph

51433 Commits

Author SHA1 Message Date
fredette ec3eeda2fe Use bus_space on sun2.
Update the comment to match list of bus_space-using ports.
Removed some old unused asm() labels.
2001-11-26 20:15:48 +00:00
yamt adbdd3e6f6 add $NetBSD$ and copyright notice and rcsid. 2001-11-26 19:55:38 +00:00
yamt f6b0ec4cce - regen for IBM SCSI PCMCIA. 2001-11-26 19:49:34 +00:00
yamt 64b2149540 add IBM SCSI PCMCIA. 2001-11-26 19:48:55 +00:00
yamt dbaca00330 move dev/isa/cs89x0{.c,{var,reg}.h} into dev/ic
and split isadma parts into /dev/isa/cs89x0isa*.
2001-11-26 19:17:05 +00:00
fredette 7eac246b74 Added support for running 68010 SunOS executables. 2001-11-26 18:15:16 +00:00
thorpej 8ec81cf263 Sprinkle CPWAIT around to enforce some barriers. Also deal with some
pre-B-step errata: must clean-dcache-line to an address before
invalidate-dcache-line to that address, or the dirty bits will not
get cleanred in the dcache array for that line.
2001-11-26 18:09:08 +00:00
fredette 3de224080a trap1 also needs to be handled under COMPAT_SUNOS. 2001-11-26 18:08:37 +00:00
fredette 877ea05895 Only declare the console keyboard on zs if it's a Sun-2
or later keyboard.
2001-11-26 18:06:36 +00:00
thorpej d8415403ba Fix brain'o in handling of schedhz and profhz. Also, make sure to
compute tickfix after computing tick (not that tickfix should ever
be non-zero, but there for completeness).
2001-11-26 18:01:05 +00:00
fredette 6aa55077e7 Disabled some more things that lighter kernels don't need,
and picked up some formatting fixes from GENERIC.
2001-11-26 17:51:08 +00:00
yamt 9324423e84 remove "stg", that I accidentally commited.
thanks, Tsutsui-san.
2001-11-26 14:21:33 +00:00
shin 3dfc0ff3ab fix pasteo. 2001-11-26 13:16:17 +00:00
yamt b43f7a4791 add pcmcia frontend for cs driver. 2001-11-26 11:17:34 +00:00
yamt 7af704bf48 - add power management code.
- use ether_ioctl instead of its own code.
  (make ifconfig down works properly.)
2001-11-26 11:14:50 +00:00
tron e75321130b Back out new "hme" driver because it causes a performance regression on
"netio" on an U5.
2001-11-26 10:39:29 +00:00
tron 7287466499 Bug fixes for VLAN handling supplied by Klaus Klein in private e-mail. 2001-11-26 06:51:12 +00:00
ichiro a103dcf333 support BUFFALO CFtype WLAN card
wi0 at pcmcia1 function 0: BUFFALO, WLI-CF-S11G,
wi0: 802.11 address 00:07:40:0f:03:ea
wi0: using RF:PRISM2.5 MAC:ISL3873, Firmware: 1.3 variant 4
2001-11-26 04:34:56 +00:00
ichiro 1c1ddcc034 regen 2001-11-26 04:19:12 +00:00
ichiro 3dcc51c184 add device: BUFFALO AirStation CFtype WLAN Card 2001-11-26 04:18:26 +00:00
itojun 8391ace8b7 in_cksum.s is needed for inet6 too 2001-11-26 02:55:39 +00:00
itojun 969cf96980 make it compile without INET 2001-11-26 02:41:20 +00:00
thorpej 3b97bd4996 Remove dummy includes. 2001-11-26 01:03:58 +00:00
thorpej da03707c2f Moved to <sys/disklabel_acorn.h> 2001-11-26 01:03:23 +00:00
thorpej e4b45721eb Remove Shark-specific header file. 2001-11-26 01:03:00 +00:00
thorpej dc19fe137e Don't install includes which userland doesn't need. 2001-11-26 01:02:28 +00:00
jonathan 879d358535 * Add entry for Dolphin Peripherals 4036 dual-serial card.
(Note: PCI ID conflicts with Dolphin Peripherals 4025; a 4025 may
   attach two serial units, but I cannot find one to test).
2001-11-26 00:41:24 +00:00
thorpej 57854f014a Install disklabel_acorn.h 2001-11-25 22:49:39 +00:00
tron 99756bfe86 Pull in Jason Wright's latest changes to the "hme" driver from OpenBSD.
This supports direct DMA from and into mbuf cluster, and VLAN
handling is done a bit differently.
2001-11-25 22:12:01 +00:00
augustss a6ba091eef Add a quirk for Olympus C-1. From FreeBSD (by iedowse) 2001-11-25 19:15:46 +00:00
augustss 596224e54f Pay attention to the timeout value passed down by the scsipi layer. 2001-11-25 19:05:22 +00:00
thorpej 4fbe7a81e0 G/c riscbsd_partition; it's not used by anything, and is the same
as the riscix_partition anyway.
2001-11-25 19:04:48 +00:00
thorpej 013b705fdc G/c the unused (and #if 0'd) bits of cpu_disklabel. Fetch disklabel_acorn.h
from the correct place.
2001-11-25 19:02:03 +00:00
augustss 6fcfa35836 Regen. 2001-11-25 17:17:42 +00:00
augustss f070b78088 Add Olympus C-1. 2001-11-25 17:17:22 +00:00
thorpej 1b71762f33 Move disklabel_acorn.h to <sys/disklabel_acorn.h>, much like we did
with disklabel_mbr.h.  More cleanup yet to come.
2001-11-25 16:22:47 +00:00
minoura 090189cb5a Surround a conditionally used varable with #if. 2001-11-25 16:11:56 +00:00
minoura bbfb453233 Remove unused variables.
Correct printf format strings.
2001-11-25 16:00:05 +00:00
thorpej 2b74082b7b End the "new ARM includes strategy" experiment. The new strategy
broke too many assumptions makde by other parts of the source tree,
and the strategy and how it was supposed to work was never discussed
on tech-userlevel, nor was it applied consistently (to all ARM ports
and to other ports which have common MACHINE_ARCH code, such as MIPS,
m68k, powerpc).

Verified to complete a full "make build" on cats, dnard, evbarm,
and netwinder.
2001-11-25 15:55:53 +00:00
minoura fe68996902 Previous commit was incomplete. 2001-11-25 15:45:26 +00:00
minoura e8ac9084a2 Make this file compile again. 2001-11-25 15:43:06 +00:00
minoura bc2457e5a5 Delete unused variables. 2001-11-25 15:42:23 +00:00
soren bf7d9c855e Adjust for dsclock name change. 2001-11-25 15:26:03 +00:00
soren 07992b8797 Forgot pooka's license header. 2001-11-25 15:13:53 +00:00
soren 45192487a5 O2 RTC attachment, based on code from Antti Kantee. 2001-11-25 15:05:04 +00:00
takemura 21006d2057 Added SigmarionII entry. 2001-11-25 14:39:50 +00:00
takemura 365ab4ac40 Deleted unused include files. 2001-11-25 14:39:20 +00:00
chs 1b8f294146 disallow mapping negative offsets for both regular files and block devices. 2001-11-25 06:42:47 +00:00
isaki 9803619f9a Sync with GENERIC 1.67 2001-11-25 05:21:12 +00:00
isaki adf7d48092 Add an ethernet part of Nereid. 2001-11-25 05:10:03 +00:00
minoura 9011251c05 Sync. with GENERIC plus others. 2001-11-25 01:27:49 +00:00
minoura 67b7ba9580 se0 is dead. 2001-11-25 01:23:45 +00:00
minoura fb3e999db8 One more floppy fix. 2001-11-25 00:42:11 +00:00
minoura f7b4b90acd Avoid using array chaining mode of DMAC. 2001-11-25 00:38:50 +00:00
lukem 73191c8c28 comment out CRYPTO_MD_DES_ENC & CRYPTO_MD_BF_ENC; they're not used
anywhere in the kernel, they're not defopt-ed, and config(8) -v
complains about them
2001-11-25 00:02:12 +00:00
yamt ce170de115 - add (partial?) i/o mode support.
- add partial cs8920 support.
- add detach code.
- add a quirk for EtherJet PCMCIA with cardbus bridge.
(above "partial" means "engough to support EtherJet PCMCIA")
2001-11-24 20:18:55 +00:00
thorpej a3a8490ca2 Sanitize hpcarm includes somewhat, make them more like other ARM ports. 2001-11-24 17:39:31 +00:00
minoura c5979593b7 Remove debug messages.
Fix bogus floppy check.
2001-11-24 16:38:16 +00:00
minoura 6018e68205 C version of installboot(8).
Shell script version required sed, od, etc. which were too big for install
media.
2001-11-24 16:26:56 +00:00
minoura 12c8367914 boot_ufs can now used as the disk primary boot. 2001-11-24 16:22:54 +00:00
minoura a8f7d98ad9 Emit the binaries directly from the loader. 2001-11-24 16:18:44 +00:00
minoura c957ecf172 Support BSD style disklabel on harddisks.
XXX need consistency check between the native label and the BSD label.
2001-11-24 16:08:25 +00:00
martin 86c6c53869 Sanity check the tunnel route after computing it and don't mark the
interface up if there is no route or the route loops back to ourself.
This helps to avoid pilot errors which would result in kernel stack
overflows.
2001-11-24 15:46:08 +00:00
jdolecek 67238c609c The header part of driver overhault:
* simplify and clean the attach code a lot, and support the 'drive'
  locator
* pass proper dev_t to readdisklabel() - formerly, the passed value was
  completely broken (used incorrect major and wrong minor), but worked
  by accident
* worker thread is now spawned per controller, rather than per-drive;
  i/o cannot be done concurrently by different drivers, only one
  i/o can be pending at any time
* simplify the command queue code, just sleep appropriately when
  !poll case, g/c 'async' code formerly needed, move the bio code
  from ed_mca.c to edc_mca.c:edc_bio()
* other misc cleanups
2001-11-24 12:46:15 +00:00
jdolecek 211d58f020 don't need opt_mcaverbose.h here
print 'memory configured' instead of just 'configured' for memory expansion
cards
2001-11-24 12:33:14 +00:00
isaki 26b511b905 fix typo s/68551/68851/ in a comment. 2001-11-24 06:53:16 +00:00
thorpej 525c88a3c4 Cleanup, don't install headers that userland doesn't need. 2001-11-24 03:56:48 +00:00
thorpej ccbcd042c1 Clean this up, don't install files that userland doens't need. 2001-11-24 03:54:52 +00:00
thorpej ce8333e910 This is a Shark-specific file; don't need it here. 2001-11-24 03:52:34 +00:00
thorpej c5269c1608 Make the ARM, Ltd. floating point emulator work w/ ELF. 2001-11-24 03:39:17 +00:00
thorpej 372f11b657 The ARM, Ltd. floating point emulator has moved to arch/arm. 2001-11-24 01:43:20 +00:00
thorpej fc2c469259 The ARM, Ltd. floating point emulator has moved to arch/arm. 2001-11-24 01:27:11 +00:00
thorpej 87fe867c21 Move the ARM, Ltd. floating point emulator to arch/arm. 2001-11-24 01:26:23 +00:00
thorpej 598f003e0a More G/C. 2001-11-24 01:16:54 +00:00
thorpej 1cfe216e3b Garbage-collect more acorn32-specific stuff. 2001-11-24 01:15:36 +00:00
thorpej 99ae803762 Gerbage-collect a lot of stuff long since moved to arch/acorn32. 2001-11-24 01:11:51 +00:00
perry 7c92f5c3a7 add a VTOC macro that doesn't cast, and fix a spurious lvalue cast with it. 2001-11-24 01:11:34 +00:00
thorpej 1a60d78375 These files are no longer used; the Acorn RiscPC port is now
NetBSD/acorn32.
2001-11-24 01:02:21 +00:00
thorpej ef9741def9 No need to install bootconfig.h 2001-11-24 00:57:43 +00:00
martin c21931cf1d Make this respect down interfaces. 2001-11-24 00:21:27 +00:00
thorpej 2e546f76dd Don't need "options PROG32" anymore. 2001-11-24 00:11:00 +00:00
soren 2e3553d407 Make sure to hook into DDB/KGDB if so requested. 2001-11-23 23:48:07 +00:00
thorpej 49592e9870 No need to install irqhandler.h 2001-11-23 23:34:48 +00:00
jdolecek bb23eba3d8 MCA DMA hooked via bus_dma, so remove one
add entry regarding AHA-1640 (the driver needs testing)
2001-11-23 22:57:34 +00:00
jdolecek 07312f0fbb Convert over to use the new MCA DMA facilities, which encapsulate
the MCA DMA controller access. This also means we gain >16MB RAM support.

While here, overhaul the driver to saner state, especially:
* simplify and clean the attach code a lot, and support the 'drive'
  locator
* pass proper dev_t to readdisklabel() - formerly, the passed value was
  completely broken (used incorrect major and wrong minor), but worked
  by accident
* worker thread is now spawned per controller, rather than per-drive;
  i/o cannot be done concurrently by different drivers, only one
  i/o can be pending at any time
* simplify the command queue code, just sleep appropriately when
  !poll case, g/c 'async' code formerly needed, move the bio code
  from ed_mca.c to edc_mca.c:edc_bio()
* put all string arrays used by edc_dump_status_block() within #ifdef EDC_DEBUG,
  and use numbers instead if it's not defined; this cuts object size by 5KB
* other misc cleanups
2001-11-23 22:53:09 +00:00
jdolecek 90fac765da add 'drive' locator to mca edc 2001-11-23 22:35:46 +00:00
chs 9b6f5a226b macos partition tables appear to use 512 bytes per record rather than
1 sector per record.  change the label code to use the same layout
so that CDs with macos partition tables work.
2001-11-23 22:31:22 +00:00
jdolecek 851fb345aa add mca_dmamap_create() prototype for MI code 2001-11-23 22:29:16 +00:00
jdolecek ed11067c01 Properly glue in the MCA DMA controller support, using bus_dma
interface, using the code from dev/mca/edc_mca.c:edc_setup_dma()
as a base. Use ISA routines for dmamap/dmamem functions, primarily
to get the buffer bouncing for >16MB RAM machines.  The MCA DMA
channel is stored in unused upper 4 bits of ISA DMA cookie's
id_flags, hopefully that's not too disgusting :)
Export mca_dmamap_create(), which returns map suitable for further DMA
operations using MCA DMA controller.

mca_busprobe(): also report if machine has 32bit DMA (feature byte 2
bit 1)

Use symbolic names for DMA controller commands - I've finally got
info what they mean from Tymm Twillman's Linux include/asm/mca_dma.h.
No more magic constants! Also fix bug in the way DMA counter has been
setup - for 16bit DMA, it's necessary to tell the controller _half_
the byte count. This was wrong in the former code.
2001-11-23 22:24:36 +00:00
jdolecek bf7f67be85 if the LKM support is not compiled in, don't bother using exec_lock
at all, it's only needed in LKM case

use #if defined(LKM) || defined(_LKM) condition for netbsd32_execve.c,
to DTRT when either compiled statically into kernel with LKM support,
or compiled as a LKM
2001-11-23 22:02:39 +00:00
chs a106161b5a add spaces for KNF. confirmed to produce identical objects. 2001-11-23 21:44:25 +00:00
thorpej b8ed19b4ef No longer need <machine/undefined.h>. 2001-11-23 21:23:30 +00:00
thorpej fc019be5fd Use <arm/undefined.h> instead of <machine/undefined.h>. 2001-11-23 21:18:29 +00:00
thorpej 597c20c6d6 Don't need a <machine/profileio.h> on these platforms. 2001-11-23 20:56:27 +00:00
thorpej dbbad6df48 profileio.h is a Shark-specific header, so don't reference an
ARM-generic verion (it's going away).
2001-11-23 20:47:17 +00:00
thorpej 0a824f32cb No longer need <machine/pte.h>. 2001-11-23 20:43:03 +00:00
thorpej a41a73c44a No longer need <machine/cpus.h> 2001-11-23 19:51:32 +00:00
thorpej 889b84bdfc Use <arm/cpus.h>, not <machine/cpus.h> 2001-11-23 19:46:35 +00:00
thorpej 0ab1aedd0d No longer need <machine/cpufunc.h> 2001-11-23 19:40:45 +00:00
thorpej 969599022a Use <arm/cpufunc.h>, not <machine/cpufunc.h>. 2001-11-23 19:36:48 +00:00
thorpej 0c57d87232 Use <arm/cpufunc.h>, not <machine/cpufunc.h>. 2001-11-23 19:21:47 +00:00
thorpej d60ef922be Disable the BTB by default on the XScale again; there's some early
stepping errata to deal with before we can safely do this.
2001-11-23 19:17:04 +00:00
jdolecek 59f63c238e Two changes to setrlimit(2):
* return EINVAL if specified current limit exceeds specified hard limit.
  This behaviour is required by SUSv2 (noted by Giles Lean on tech-kern)
* return EINVAL if an attempt is made to lower stack size limit below
  current usage; this addresses bin/3045 by Jason Thorpe, and conforms to SUSv2
2001-11-23 18:56:33 +00:00
thorpej 5101f01dff Move even more constants into the shared 32-bit vmparam.h header.
Cleanup elsewhere will have to be done before we can sanitize this
header any further.
2001-11-23 18:16:10 +00:00
perry 0b5814f1b4 __FUNCTION__ -> __func__ 2001-11-23 17:42:48 +00:00
thorpej 15c76e3c84 - Move more contents of various <machine/vmparam.h> files into
<arm/arm32/vmparam.h> (mostly the stuff that's tied to the pmap
  implementation).
- Since the MMU definitions in pte.h are specific to ARM processors
  that support 32-bit mode, move pte.h to <arm/arm32/pte.h>.
- Make the Netwinder startup file build again (use PT_B|PT_C, rather
  than PT_CACHEABLE, since the latter expands to a variable these days).
2001-11-23 17:39:03 +00:00
thorpej 0ec8fbad4d Extra whitespace removal. 2001-11-23 17:29:00 +00:00
thorpej fec02f1259 No need to pull in <machine/pte.h> directly. 2001-11-23 17:23:40 +00:00
thorpej 299362f0ff Pull in assym.h for __PROG32 (needed for IRQenable/IRQdisable macros,
which should probably be pulled out of cpu.h anyway...)
2001-11-23 16:53:07 +00:00
thorpej 926df47ec4 Provide __PROG32 to assembly code. 2001-11-23 16:50:48 +00:00
uch 0dff65d9f9 add missing simple_lock_init. 2001-11-23 16:21:31 +00:00
uch 4c8f0c8ea9 Update for the new cache code. 2001-11-23 16:09:11 +00:00
uch 9d6cd691b6 integrate BUILTIN_KERNEL_LOADER and KERNE_PATH into KLOADER_KERNEL_PATH. 2001-11-23 16:08:45 +00:00
uch 6bd02d8e33 add #ifndef _LOCORE. 2001-11-23 15:48:40 +00:00
atatat f4c8a80b47 Oops. Add in missing entry point settings. 2001-11-23 15:44:15 +00:00
bjh21 c8dbbf25b2 all -> realall, so that "make dependall" works correctly. 2001-11-23 12:58:03 +00:00
enami 71651851a4 Match against EPSON GT-9700F. 2001-11-23 10:31:54 +00:00
enami 674f6e4d18 Regen. 2001-11-23 10:30:49 +00:00
enami 9930efdacf Add product id of EPSON GT-9700F. 2001-11-23 10:29:30 +00:00
enami fe972558c0 Use __func__ instead of __FUNCTION__. 2001-11-23 10:20:47 +00:00
enami 4789a8840d Provide compat definition of __func__ for pre-C99 compiler. 2001-11-23 10:19:47 +00:00
tsutsui d8879382cf Add 32B/l L1 D/I-cache ops for newer ARC machines. 2001-11-23 06:21:49 +00:00
atatat 155e541aa2 Instead of checking for previous usage, just append to some make
variables.  Tweak some variables to provide for more uniform defaults.
Minor adaption to makefiles for already converted ports.
2001-11-23 05:18:59 +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
augustss cdc819cd8a Improve xfer abort sequence.
Fix another bug in qTD chain allocation.
2001-11-23 01:16:27 +00:00
augustss 6d8419a6cc Handle Zip quirks differently.
Ugh!  This driver need major overhaul.
2001-11-23 01:15:28 +00:00
augustss 6f95b070ca Update mass storage protocol numbers. 2001-11-23 01:14:45 +00:00
simonb 1b1e4bd3d1 Remove hardcoded values for HZ (under different names!) from mcclock.c
and clock_machdep.h, so that now HZ can be any supported frequency of
the mc146818a/ds1287a RTCs.
Tested at 256Hz and 2048Hz.
2001-11-23 01:04:11 +00:00
augustss 37c8189778 Correct a comment. 2001-11-22 21:59:33 +00:00
jdolecek d5c1ba9ed2 add a comment clarifying the DMA support, g/c the commented
out isa_dmacascade() call
some minor intendation changes, while here
2001-11-22 20:25:58 +00:00
thorpej 5278f1771c Remove kerndebug.h from non-Shark code (it's a Shark-specific header
file, and probably should be done away with anyway).
2001-11-22 19:19:48 +00:00
thorpej b9d3276c2e No need for <machine/rtc.h> here. 2001-11-22 18:40:12 +00:00
thorpej b393d0d3f7 Kill <machine/katelib.h>. Any place that still uses it should just
reference <arm/arm32/katelib.h> until such time as all use of this
file has been purged from the face of the earth.
2001-11-22 18:34:30 +00:00
thorpej 88bba2e5a4 Add cpu_cpwait() calls after TLB updates that are not expected to
be followed up by a pmap_update().
2001-11-22 18:24:43 +00:00
thorpej 67fd41ddbf Add 26-bit and 32-bit types.h files, which indicate the programming
model in use for a given platform (__PROG26 vs __PROG32), then pulls
in <arm/types.h>.  Change each ARM port to pull in <arm/arm26/types.h>
or <arm/arm32/types.h> as appropriate.  Change all references to PROG26
and PROG32 to __PROG26 and __PROG32.  Eliminate the opt_progmode.h
header file.
2001-11-22 17:59:57 +00:00
takemura 5815e5f567 Fixed bus stuff to compile vrpciu.c (VR4131 CPU). 2001-11-22 14:22:30 +00:00
tsutsui e7fb452657 Fix some debug code in bios_configure_memory(). 2001-11-22 12:17:00 +00:00
simonb 944346b889 KNF, ANSIfy.
Change print_addr() to take an db_addr_t argument instead of a long.
2001-11-22 06:58:03 +00:00
simonb 973ad566f7 Update the CP0 register names.
Make some tables line up nicely.
Make print_addr() static.
2001-11-22 06:00:31 +00:00
yamt 5bf4d5554b use little-endian crc on multicast hash for admtek chips. 2001-11-22 05:03:04 +00:00
soren 7e84b9e1db Add wscons devices. 2001-11-22 04:50:04 +00:00
augustss 7467533f5a Improve dump routine slightly. 2001-11-22 04:31:01 +00:00
augustss 6e3a855c27 Fix a bug in qTD chain allocation.
Fix a qTD leak.
Handle out of memory conditions better.

My USB 2.0 CD-RW now mounts nicely and I can access files.
Performance is still lacking (it's at about 2Mbyte/s).
2001-11-22 04:20:49 +00:00
uwe 1eebb3fde3 Add patches for Mr.Coffee with OBP2.
Miscellaneous cosmetic changes.
2001-11-22 04:18:28 +00:00
rafal 85cae1f6d1 If we already have a boot device set, don't reset the slot/unit/partition.
Now my Challenge S boots multiuser with the new bootloader without stopping
to ask for boot/root devices.
2001-11-22 03:15:35 +00:00
simonb b9f67baecf <sys/sysctl.h> doesn't need to be after <uvm/uvm_extern.h> anymore, put
it with the other <sys/_foo_.h> include files.
2001-11-22 03:08:01 +00:00
chs 3f9a8628df we need to hold the pageq lock while calling uvm_page_unbusy() on
pages that uvm_page_unbusy() will free.
2001-11-22 02:42:37 +00:00
soren 6c3e025b46 Nuke cleandir target override. 2001-11-22 02:18:24 +00:00
soren 6e9ab4848f Respect OSLoadPartition even if it doesn't come before SystemPartition in argv.
Add a few comments about the above.
2001-11-22 02:06:32 +00:00
soren b63ced481c Note kernel load adress change. 2001-11-22 01:30:03 +00:00