Commit Graph

37441 Commits

Author SHA1 Message Date
uch e3c3882828 PCIBIOS_IRQS changed to PCIBIOS_IRQS_HINT. PCIBIOS_IRQS_HINT is
used when no IRQ guess. when at least 1 PCI device configured
        correctly, unused.
2000-04-28 17:15:15 +00:00
uch bbb8c56fcb add PCI_MAPREG_PPB_END (PCI-PCI bridge) PCI_MAPREG_PCB_END (PCI-Cardbus bridge) 2000-04-28 17:12:45 +00:00
soren 99e6adf31e Adapt to cpu_intr() change. 2000-04-28 15:55:51 +00:00
ad db06ac868b Attach cac* and ca*. 2000-04-28 13:51:56 +00:00
ad 8f9b06a9e6 - Enable ca(4) device.
- Fix a couple of nits.
2000-04-28 13:50:25 +00:00
ad ab2d7be096 Add missing cdevsw and chrtoblktbl entries. 2000-04-28 13:28:42 +00:00
simonb 3c359c262d The size of the members of struct ultrix_utsname were nothing like
reality - adjust and fill in "version" the same way that some other
compat routines do.  An Ultrix "uname -a" returns something meaninful
now instead of just "NetBSD     ".
2000-04-28 12:52:52 +00:00
augustss 308fa27a0d Unmute some mixer controls by default. From OpenBSD. 2000-04-28 12:39:59 +00:00
jdolecek 520f9dc581 pasfind(): avoid silly bug - if bus_space_map() of SB I/O space failed,
we used bad label and tried to bus_space_unmap() invalid memory
	region

Fixes port-i386/9992 by Jarkko Teppo <jate@uwasa.fi>.
2000-04-28 08:51:42 +00:00
shin e3d2f0ae85 delete obsolete 'options MIPS_16K_PAGE'. 2000-04-28 07:19:33 +00:00
thorpej 0b3af10371 Keep track of current power state (resumed, standing by, suspended), and
only perform standby/suspend/resume actions if the state actually changes.

Inspired by some similar code in the USB code, pulled into here so that
the workaround isn't needed in every driver.
2000-04-28 04:48:51 +00:00
tsutsui 61e3f39169 Fix copyright notice as per request from the author. 2000-04-28 03:48:56 +00:00
matt 70d4422b8a Dump NRCV to 8 from 5. Note that a 8K NFS reply takes 6 full size
Ethernet packets so the chances are that if the server was fast enough
this driver would continuously lose one of the fragments.  Eventually
causing the kernel load to fail.  Add 2 extra for random ARP or other
packets that might be picked up.
2000-04-28 00:08:51 +00:00
is e6f57d38e4 Fix thinko in fix for fix for cf_unit abuse. 2000-04-27 21:11:07 +00:00
uch e14885d915 fix comment. 2000-04-27 19:38:23 +00:00
bouyer fcf693203f More big-endian fixes from Izumi Tsutsui. 2000-04-27 16:49:07 +00:00
itojun 57434b944b misuse of free(ia) in #if 0'ed region.
From: Lennart Augustsson <lennart@augustsson.net>
2000-04-27 16:44:19 +00:00
thorpej a8b12af644 - When we get an ABOUT_TO_CHANGE event, send an OK message in response
so that the docking/undocking process can actually complete.
- Track the current docking state, and report the current state when it
  changes.
- Make it possible to enable pnpbios verbosity at run-time.
2000-04-27 16:41:59 +00:00
itojun 7e72267252 correct in6_ifdetach(). free oia, not ia.
From: Lennart Augustsson <augustss@augustsson.net>
2000-04-27 15:39:05 +00:00
augustss 30c20f930f Change my email address. 2000-04-27 15:26:44 +00:00
augustss 91878e8679 Reorder some #defines. 2000-04-27 15:25:36 +00:00
bouyer fe54b787dc Add NetBSD RCS Id and copyrigth notice. 2000-04-27 14:08:09 +00:00
bouyer bf7a94ec2b Fix copyrigth notice. 2000-04-27 14:06:57 +00:00
bouyer 2fb93595b2 Note siop changes. 2000-04-27 12:48:59 +00:00
soren 88bf41a16e Use siop(4). 2000-04-27 10:52:43 +00:00
oster db11351ced Make sure the config structure allocated during autoconfiguration actually
gets initialized properly.  Should fix PR#9816.
2000-04-27 00:57:48 +00:00
itojun b360c656a0 temporary workaround against GIF NUD issue (when you configure globals
onto GIF, NUD prevents packet from going out)
KAME PR 245.  From: Andreas Wrede <andreas@planix.com>
2000-04-27 00:33:47 +00:00
thorpej 43db473cbb Clean up the docking-event related message, and make it possible to
debug docking events without having to debug the rest of PNPBIOS.
2000-04-26 20:33:46 +00:00
bouyer ce7f4dafe1 Big-endian fixes from Izumi Tsutsui. 2000-04-26 20:00:31 +00:00
thorpej ef25b7769e Regen. 2000-04-26 17:30:59 +00:00
thorpej 0defe75e76 Add product ID for the PLX Technology 9060ES PCI bus controller. Note this
ID isn't normally seen, as just about every device with a PLX on it loads
a different ID from an EEPROM, but there's no harm in documenting it.
2000-04-26 17:30:35 +00:00
ad d5d441a516 - Bump xfer size limit to the maximum allowable.
- 20 CCBs is enough to maintain a constantly stuffed inbound FIFO.
2000-04-26 15:58:01 +00:00
ad 75bb77ed56 - Rearrange some spl*() calls to be as intended.
- Scan cac_cd in cac_shutdown(), don't use a SIMPLEQ.
2000-04-26 15:54:02 +00:00
tsutsui b4f524c223 - Allocate mbuf dynamically on Tx and use bus_dmamap_load_mbuf(9).
- Call bus_dmamap_sync(9) as appropriate.
- Leave only register declarations in rtl81x9reg.h and
  split other stuff into rtl81x9var.h.

bus_dma(9) code mostly taken from thorpej's if_rtp.c.
2000-04-26 14:02:34 +00:00
bouyer 4e9473a1e7 ifa_ifwithnet(): for the netatalk case, don't blindly return the first match
but try to find a exact match first. Closes kern/9957.
2000-04-26 13:38:13 +00:00
itojun 3075a916cc sync with more recent kame. defer inclusion of net/if_gif.h. 2000-04-26 05:36:41 +00:00
mhitch 7d9369f3d3 Fix callout change for keyboard repeat. The callout structure was
incorrectly added as a union member which overlaid the keyboard
state structure.  Fixed by moving the callout structure into to
keyboard state structure.
2000-04-26 04:16:17 +00:00
thorpej 8b8597dae0 Recognize the Crystal CS4297A codec, and add a couple of macros
to manipulate AC97 codec IDs.
2000-04-26 00:00:41 +00:00
bouyer eba93ce7d2 Ops, need to restore correct DSA value after a phase mismatch, we may have
been interrupted during a S/G operation.
2000-04-25 20:02:33 +00:00
bouyer 88be4752d0 - Change the script to start new commands in an asyncronous way, using
'command slots' in which the host can put command and wait for the script
 to start them
- Change siop.c to do full disconnect/reslelect, allowing as much as one
 command per target/lun to run in parallel.
- Fix bug in registers init where a board without BIOS would end at
  ID 0 (now the driver works on alpha too).
- better handling of messages, sending back a MSG_EXT_SDTR in response to an
  incoming MSG_EXT_SDTR, and MSG_MESSAGE_REJECT for unhandled messages.
- fix use of bus_dmamap_sync() and htole32().
- supports shared interrups
- change some int8 and int16 to int, for alpha and mips benefits ( suggested by
  Toru Nishimura)
2000-04-25 16:27:05 +00:00
tsubai 151b83e2e1 Add ex* at pci and rtk* at pci. 2000-04-25 16:05:06 +00:00
bouyer 5ee6872b46 - Add support for NOP instruction
- fix dsp value for second operand of memory move, so that patch list will be
  correct.
2000-04-25 16:01:16 +00:00
mrg dab52c26ad - add a note about streaming buffers and US IIi not having them.
- make some debugging messages in iommu_remove() saner and add some more.
- decrement 'len' in the no streaming buffer case, also.
- in iommu_dvmamem_map(), do not enter these mappings into the IOMMU,
  only into the CPU (the former is done at _load time).
- make a panic that shouldn't happen a DIAGNOSTIC.
2000-04-25 14:59:38 +00:00
augustss df70862e8c Insert (very conservative!) bus_space_barrier() calls at all register accesses.
The bus_space(9) man page says you've gotta have them...
2000-04-25 14:28:13 +00:00
tsutsui 6369b56c99 Fix two endian problems. rtk now works on macppc.
- Use le32toh() on reading rxstat from the Rx DMA buffer.
- rl_read_eeprom() should return EEPROM values in little endian
  when caller requires byte-stream data.

bus_dma(9) fixes are still on-going.

XXX rtk on macppc seems to make tons of CRC errors...
XXX Does it work fine on i386 or others?
2000-04-25 14:16:46 +00:00
tsubai 1be338dabc GC VM_MBUF_SIZE. 2000-04-25 12:31:10 +00:00
tsubai 63fca4fecb Use P1SEG to map pool pages. 2000-04-25 12:17:06 +00:00
augustss 74beeca710 Move the size of the mapped bus_space region into the bus independent softc. 2000-04-25 09:20:54 +00:00
uch f49b235cc0 remove COMPAT_386BSD_MBRPART
remove COMAPT_13, COMPAT_14. hpcmips appears NetBSD 1.5.
2000-04-25 06:20:14 +00:00
itojun 7d20d62f25 ipip is needs-count, not needs-flags. evidence: manpage and all
sys/arch/*/conf/GENERIC has count.
2000-04-25 06:08:31 +00:00
matt 1fe20bbb39 be a bit more defensive in the probe routines. only allow one attachment. 2000-04-24 21:59:22 +00:00
matt d32950cb7e Add cd9660 support to the secondary boot blocks. 2000-04-24 21:46:07 +00:00
perseant 4ea5a53003 get rid of unused variable aflags 2000-04-24 19:07:16 +00:00
augustss aae26d0d0c Move a test if the MIDI is open outside a loop in the interrupt routine.
Some stylistic changes.
2000-04-24 17:55:24 +00:00
thorpej 23694b5ab3 Glue in uvm_pageidlezero(). While here, improve some panic messages
in pmap.c, as requested by Jonathan Stone.
2000-04-24 17:18:16 +00:00
thorpej 9ec517a68e Changes necessary to implement pre-zero'ing of pages in the idle loop:
- Make page free lists have two actual queues: known-zero pages and
  pages with unknown contents.
- Implement uvm_pageidlezero().  This function attempts to zero up to
  the target number of pages until the target has been reached (currently
  target is `all free pages') or until whichqs becomes non-zero (indicating
  that a process is ready to run).
- Define a new hook for the pmap module for pre-zero'ing pages.  This is
  used to zero the pages using uncached access.  This allows us to zero
  as many pages as we want without polluting the cache.

In order to use this feature, each platform must add the appropropriate
glue in their idle loop.
2000-04-24 17:12:00 +00:00
matt b7de2c5900 Add lcgreg.h. 2000-04-24 17:09:56 +00:00
matt 7964d80339 Initial definition of registers for VS400 LCG cards. Still needs more. 2000-04-24 17:09:03 +00:00
tsutsui 6f9392b42a Merge changes of sys/pci/if_rl.c rev. 1.8->1.10. (from kern/9870)
Also remove unused pbase, vbase and PCI_CAP_PWRMGMT declarations.
2000-04-24 15:25:00 +00:00
ragge c6a9a48f2e Add 4000/90 to the countdown hack. 2000-04-24 14:45:30 +00:00
uch 6d1291a469 code clean up. 2000-04-24 13:02:13 +00:00
uch 814e39b9e3 add COMPAT_386BSD_MBRPART 2000-04-24 12:59:43 +00:00
uch 3be17707f3 remove #ifdef alpha 2000-04-24 12:58:32 +00:00
tsubai 88a555948c Sync with current i386 pmap.c. 2000-04-24 08:40:21 +00:00
mhitch 62c210a97b Fix bootblock countdown for 4000/VLC. 2000-04-24 07:03:27 +00:00
augustss 4d0217d2c1 Remove item. 2000-04-23 23:21:32 +00:00
augustss 007a7dbfd8 Update with new files. 2000-04-23 23:19:36 +00:00
perseant eedb742e6e Fix problems outlined in PR#9926:
- lfs_truncate extends the file if called with length > i_ffs_size;
    - lfs_truncate errors out if called with length < 0;
	- lfs_balloc block accounting corrected for the case of blocks read
	  into the cache before they exist on disk;
	- mp->mnt_stat.f_iosize is initialized in lfs_mountfs.
2000-04-23 21:10:26 +00:00
matt 9148a41e81 fix booted_qe case to compare locators against controllers. 2000-04-23 20:30:37 +00:00
tsarna da1f2723c4 Addredd port-i386/9897, but differently. Since the effect of resetting
the video mode on machines with ancient or no video cards is not clear,
for safety's sake a I created a new biosboot variant, biosboot_resetvideo
that does the call.

Anyway, now I can boot my i-opener without hitting Tab. Thanks Andrew!
2000-04-23 19:57:12 +00:00
mhitch 437d090c28 Long term bug finally reared its head: size of device softc was specified
as sizeof(struct device) when amiga switched to new config, and recent
additions of callout structures and a long missing struct device to the
soft structure resulted in kernel panics when attempting to open the builtin
serial port.  The callout structure initialization was clearing the serial
port softc data!  Fixed by using sizeof(struct par_softc).
2000-04-23 19:55:51 +00:00
augustss 0e5c7f55af Regen. 2000-04-23 19:35:35 +00:00
augustss 23f3c0074f Sync with FreeBSD: add two more adapters. 2000-04-23 19:03:45 +00:00
thorpej bfced25d78 Update with reality. 2000-04-23 17:51:21 +00:00
thorpej d0271b127d Add PNPBIOS front-end for the PC Floppy Controller driver. 2000-04-23 17:50:00 +00:00
thorpej 0cde36f780 Carve off the ISA configuration bits from the floppy driver. Driver is
still ISA-specific, but we can attach ISA instances with different
configuration mechanisms now.
2000-04-23 16:47:45 +00:00
matt c10673838a Extend asc driver to include support for the VS400/9x.
Add VS4000/9x support vsbus_dma.c
2000-04-23 16:38:52 +00:00
takemura 6d972981ff Support 8bpp mode on MC/R530. 2000-04-23 10:20:50 +00:00
minoura dfb848e298 M680x0 are now defopt'ed. 2000-04-23 05:49:14 +00:00
minoura 13fc4ebbe1 Do not include opt_m680x0 in LKM. 2000-04-23 05:38:31 +00:00
augustss b12ed6c03b Make it possible to move a device to its unconfigured state by
using config #0.
2000-04-23 00:46:59 +00:00
augustss bc5e86601e Add an item. 2000-04-22 22:52:15 +00:00
augustss 3a27942ba8 Add a clarifying comment. 2000-04-22 22:50:44 +00:00
jdolecek 40d9f8a709 msdosfs_read(): avoid integer overflow for files > 2GB, when
difference between current read position and file size
	is bigger than 2GB

This fixes problem first noted in FreeBSD PR#15639 and sent
by Martin J. Laubach in kern/9046, though the implementation
differs a bit.
2000-04-22 22:45:37 +00:00
thorpej 8ec60a189f Make sure the payload is aligned when using E2-over-802.11 encapsulation,
as enabled by the LINK0 flag.  Fixes PR kern/9700.
2000-04-22 22:36:14 +00:00
eeh 5099c60132 If we trap due to a bad kernel stack, try to switch to the interrupt strack
before breaking into the debugger.
2000-04-22 22:06:06 +00:00
matt 25d6f027de Detect controller number on boot_qe check. 2000-04-22 21:40:40 +00:00
groo 3a77b18fd7 name change; rl -> rtk. Still commented out. 2000-04-22 21:03:27 +00:00
ragge 8b94e15772 Fix boot block countdown on 4000/60. Easy to add for other 4000 machines also. 2000-04-22 20:29:58 +00:00
ragge a47bd10baa Use RAISEIPL on all workstations. 2000-04-22 18:11:27 +00:00
augustss 5ea1af4bf4 Regen. 2000-04-22 18:07:19 +00:00
augustss f468f877de Add some CMedia audio devices. From T.SHIOZAKI <AoiMoe@imou.to> 2000-04-22 17:32:02 +00:00
mrg 1013298c2a whole bunch of changes:
- merge IOMMU DVMA code from sbus/psycho into iommu.c.  this code was
  identical and a few minor inconsistencies had crept in.  this way
  keeps them all in sync.
- with this code gone from psycho, merge the psycho.c and psycho_bus.c
  files.  same with ebus/ebus_bus.c.  delete the _bus.c files.
- add a _ds_boundary member to the dma segment structure, so that later
  dma mappings can find this value.
- set _ds_boundary in machdep.c:_bus_dmamem_alloc().
- kill much dead code.
2000-04-22 17:05:59 +00:00
ragge 3a90b3236e Forgot a protection #define.
Make use of raise-spl.
2000-04-22 17:05:07 +00:00
ragge 8c7cf8f008 Add device switch entry for RL disks. Only uses rom to boot so far. 2000-04-22 16:52:23 +00:00
ragge cab5a24c60 Recognize RL02 as boot device. 2000-04-22 16:50:44 +00:00
ragge 9b8f75bee1 Add "rl" disk. 2000-04-22 16:48:53 +00:00
ragge 11379e0ab6 Add the famous "rl" disk. 2000-04-22 16:46:45 +00:00
ragge cbf7514ca6 Detect "rl" as root device. 2000-04-22 16:43:47 +00:00
mrg db956d0701 s#\b#\n# so an error message appears correctly. 2000-04-22 16:42:25 +00:00
thorpej bedbdf87a4 rl -> rtk 2000-04-22 16:28:48 +00:00
uch 298fbbd162 fix VP3_CFG_INTR_MASK 2000-04-22 15:00:41 +00:00
tsutsui 5f992b6d2b Rename rl -> rtk. 2000-04-22 13:13:21 +00:00
mrg 5aa4575432 - convert to DPRINTF() style debug messages.
- kill dead code.
- use the sbus dv_xname to construct a dvma map map, to pass to
  extent_alloc(), to help support multiple sbusses
2000-04-22 12:36:29 +00:00
mrg 6e576e3c03 clean up mdallocsys(). 2000-04-22 12:03:33 +00:00
ragge dd22df3dc8 Ops, forgot to commit this. 2000-04-22 08:19:49 +00:00
groo 7c6a2dcd6d name change; rl -> rtk 2000-04-22 06:56:20 +00:00
thorpej cf0a940b9f Add a pnpbios front-end to the pckbc driver. This is a littke wonky
yet.. the keyboard controller actually has 2 PNPBIOS nodes (one to
represent the controller I/O resources and the kbd port IRQ, and one
for the aux port IRQ).  To cope with this, we're attaching two instances
of the driver and forge on ahead once both nodes have been seen.

If someone has a better way, please feel free to step forward.
2000-04-22 06:41:34 +00:00
thorpej 1842a5ee3a Allow pnpbios_getirqnum() to return the share type, as well. 2000-04-22 06:38:24 +00:00
augustss 84f24d3c29 The D-link serial adapter lies about being self powered. It's obviously
bus powered.  How can we do power budgeting when the devices lie?
2000-04-21 21:02:44 +00:00
augustss 60bb0d050d Add some comments. 2000-04-21 20:58:56 +00:00
explorer d592132506 the status register is _always_ at 0x420 -- grr. How should I put this in the config file rather than hard-coded? 2000-04-21 20:13:41 +00:00
augustss 46fb8de93a Use a 255 ms interrupt interval even if the descriptor in the hub asks
for something else, because the spec says that it should be 255.
2000-04-21 19:51:43 +00:00
augustss 6bc85d9fa0 Minor nit: Use another TAB in formatting to make the columns straight. 2000-04-21 19:49:59 +00:00
ragge 171d9f6a3f First version of keep-track-of-used-devices file. 2000-04-21 19:05:43 +00:00
augustss 4379f92630 Make sure to read the full hub descriptor (including the deprecated field). 2000-04-21 18:57:40 +00:00
thorpej 8c5710a861 - Declare biosbasemem and biosextmem in <machine/cpu.h>, don't extern
them everywhere they're used.
- Avoid integer overflow when converting bios{base,ext}mem (in units of
  kilobytes) to bytes.
2000-04-21 18:37:20 +00:00
bouyer 19ada4a82a Snapshot of work in progress: new driver for the NCR 53c8xx SCSI controller
(the name 'siop' is still being discussed, may change).
Only basic disconnect/reselect for now, no sync/wide negotiation.
Tested with 810A, 875 and 895 on i386 only.
The bus-independant part should also be able to handle the 53c720 and 53c770.
A new driver with enhanced script should appear for the 825/875/895 'soon'.
2000-04-21 17:56:58 +00:00
explorer 79f12736c0 Add (commented out) addcom0 and com* at addcom? 2000-04-21 17:52:06 +00:00
bouyer cd5411b382 Script assembler for the NCR 53c7xx/8xx scsi controller. Initial work
done by Michael L. Hitch, support for the 8xx and some improvements
by me.
2000-04-21 17:50:07 +00:00
explorer 1118b3ee75 Add driver for Addonics FlexPort 8S (and probably 4S, but not tested) 2000-04-21 17:48:30 +00:00
bouyer f1d93978ae Rename define 'siop' to 'msiop' to avoid clash with machine-indepndant siop
driver. Doesn't change the name of drivers in config files.
2000-04-21 16:53:20 +00:00
bouyer 2ce6bd4b28 Rename the 'siop' define to 'asiop', to avoid clash with the MI siop driver.
This doesn't change the name of the drivers in config files.
2000-04-21 16:51:36 +00:00
minoura 48145d0463 Regen. 2000-04-21 16:18:54 +00:00
minoura 58c5fb660b We have now native issetugid. 2000-04-21 16:18:16 +00:00
minoura d982197440 Regen. 2000-04-21 16:16:15 +00:00
minoura f6051edef5 Add native issetugid() call.
Implementation from compat/freebsd.
2000-04-21 16:15:39 +00:00
augustss 3d9d091685 Change the exact sequence of commands when a hub is attached to follow
Windoze more closely.  This makes more devices work.

After two years of doing USB work I've finally access to a USB protocol
analyzer.  Which means I should be able to mimic what Windoze does in
certain cases instead of just following the specs.  Following the specs
is not enough since the devices often don't.
2000-04-21 16:05:50 +00:00
augustss 878deae672 Add a define for some slack port power up time. 2000-04-21 16:01:31 +00:00
augustss 9fb474fcf0 Regen. 2000-04-21 15:59:43 +00:00
augustss f791a72b9c Change error reporting in port reset function. 2000-04-21 15:58:55 +00:00
augustss 3f08804668 Pretend we know how to turn on port power (it's always on). 2000-04-21 15:40:01 +00:00
augustss fdeba432d2 Add a comment about a non-obvious use of a #define. 2000-04-21 15:38:55 +00:00
augustss d744db2ea9 Add D-link serial adapter (made by someone else :). 2000-04-21 15:37:50 +00:00
matt f52bc62c39 enable in-kernel NTP (so xntpd doesn't die). 2000-04-21 15:16:39 +00:00
shin a332af2846 delete unused function mips3_TLBReadVPS().
reorder insns to avoid mtc0/mfc0 hazard (for VR4100/R4700/RM52xx).
save/restore PageMask in mips3_TLBRead().
2000-04-21 14:14:55 +00:00
shin e2711a6552 make it compile with -DDEBUG. 2000-04-21 14:10:39 +00:00
tsubai e27d574b01 Make this compile. 2000-04-21 13:35:27 +00:00
tsubai 14219ebd05 Use dev/ic/com.c. 2000-04-21 07:12:53 +00:00
nisimura 79733cb614 Effort to have consistent comments, fixing one error. 2000-04-21 02:45:01 +00:00
itojun eaeb53372e update comment (analysis on 04 draft) 2000-04-21 02:40:53 +00:00
nisimura 3d5a5b03f5 - Address PR#9907. u_pte[1] wired down is left not global sometimes.
The brokenness is revealed sporadorically by memory usage on runtime.
- Avoid Vr4100 incompatibilty by making sure to retain default pgMask
  value for TLB invalidation routines.
2000-04-21 02:39:55 +00:00
augustss e1950d4ffa regen. 2000-04-20 23:40:27 +00:00
augustss 3e4e60beeb Add Zip 250. 2000-04-20 23:39:50 +00:00
mhitch ac3bfd5e7f When the tty intialization was split out of rcons_init(), the call to
rcons_ttyinit() was never added to the pmax rasterconsole stuff.  Output
to the display using /dev/console has not been working since then.  Adding
the call to rcons_ttyinit() makes this work again.
2000-04-20 20:02:34 +00:00
ragge 73e5b4e878 Raise IPL after interrupt, for LANCE chip. 2000-04-20 18:55:50 +00:00
thorpej 13c39a5cb6 Put the rasops attributes in conf/files so that everyone can run
config(8) without pulling in files.rasops.  There is prior art for
this, e.g. audio.
2000-04-20 18:23:37 +00:00
msaitoh e61941261f remove a debug log 2000-04-20 14:04:04 +00:00
msaitoh 25f1ebacc1 add a copyfault routine into the TLB miss handler 2000-04-20 14:02:41 +00:00
pk 43cdacc18b ctx_alloc: set context before flushing a stolen context's cache 2000-04-20 13:59:02 +00:00
msaitoh 48c1343230 asm bcopy() for sh3 2000-04-20 13:52:35 +00:00
tsubai 8bd19349a1 Fill paa_busname field in pcmciabus_attach_args. 2000-04-20 11:51:27 +00:00
nathanw 3e49436f9d Replace rcons console code with rasops console code.
Console text should now be supported on all TGA cards;
8- and 32-bit TGA and 8-bit TGA2 have been tested.

Implement accelerated character drawing, scrolling, and clearing.

Stop clearing "odd" in VHCR; it's unnecessary and hurts performance.

Use bus_space_vaddr() instead of a local hack.
2000-04-20 05:25:20 +00:00
enami c63f06acd3 IN_MULTICAST() takes in_addr.s_addr as argument, not pointer to it. 2000-04-20 01:59:22 +00:00
thorpej c6fa58a322 - Allocate the ktrace operation header on the stack rather than using
MALLOC()/FREE().
- In ktrgenio():
	- Don't allocate the entire size of the I/O for the temporary
	  buffer used to write the data to the trace file.  Instead,
	  do it in page-sized chunks.
	- As in uiomove(), preempt the process if we are hogging the CPU.
	- If writing to the trace file errors, abort rather than continuing
	  to loop through the buffer.

From Artur Grabowski <art@stacken.kth.se>, with some additional cleanup
by me.
2000-04-19 19:14:17 +00:00
augustss 173c535a95 Add one, remove some. 2000-04-19 16:17:45 +00:00
tsubai baa659b825 #include <machine/conf.h>. 2000-04-19 15:56:27 +00:00
itojun 79e89da473 change copyright notice from 3-clause TNF -> 4-clause TNF.
not sure if which we prefer, but the point is to use exactly the same
copyright.  From: matthew green <mrg@eterna.com.au>
2000-04-19 15:16:02 +00:00
tsubai c88cf26926 Sync with evbsh3. 2000-04-19 14:31:48 +00:00
haya 784977f319 Changes the name of RealTek driver. The new name is `rtk'. This used
to be called `rl' and it conflict with RL vax disks, canonical and
historical unix driver name.

This changes are minimal: it only changes the name of RealTek driver.
The filename of source code and a lot of the letter `rl' in source
files should be changed shortly.
2000-04-19 08:44:31 +00:00
pk e5ab0feccc Have prom_cngetc() wait until input has been typed. 2000-04-19 08:15:06 +00:00
bouyer 5803932005 Regen 2000-04-19 07:52:33 +00:00
bouyer 01beba012a Add some Symbios devices. 2000-04-19 07:51:20 +00:00
itojun 5393e61dd0 add boundary check for nd6_ifinfo (otherwise ndp -i can make out-of-bound
accesses).
2000-04-19 07:13:03 +00:00
itojun 3be41bae18 add stf pseudo interface (commented out due to possible security risks) 2000-04-19 06:50:27 +00:00
itojun d300ce3942 add net/if_stf.h and netinet/ip_encap.h (almost noone will include them though) 2000-04-19 06:39:15 +00:00
itojun 3909133548 introduce sys/netinet/ip_encap.c, to dispatch inbound packets
to protocol handlers, based on src/dst (for ip proto #4/41).
see comment in ip_encap.c for details of the problem we have.
there are too many protocol specs for ip proto #4/41.
backward compatibility with MROUTING case is now provided in ip_encap.c.

fix ipip to work with gif (using ip_encap.c).  sorry for breakage.

gif now uses ip_encap.c.

introduce stf pseudo interface (implements 6to4, another IPv6-over-IPv4 code
with ip proto #41).
2000-04-19 06:30:51 +00:00
enami a2bf544200 Allocate the variable `inqbuf' in scsi_probedev on stack rather than
statically.  Since this function may called for another luns immediately,
allocating it statically doesn't make sense and may cause race condition
as pointed out by PR#9749.
2000-04-19 04:49:50 +00:00
itojun 5e5941eda1 remove extra memory region kept by "struct pfil_head pfil_head_t;".
it seems totally, unnecessary, or seems to be typo for typedef.
(correct me if i'm wrong)
2000-04-19 04:46:23 +00:00
enami debe6e88b6 Calculate an offset of mailbox_in correctly by renaming BHA_MBO_OFFSET
to BHA_MBX_OFFSET and using it also for mailbox_in.  Since all mailboxes
should be placed in a single continuous memory due to a hardware limitation,
an offset of any mailbox can be/should be calculated using a same expression.
2000-04-19 02:39:12 +00:00
mrg 19a31e7b5e add a newline to this fake autoconfig line. 2000-04-19 02:26:08 +00:00
haya edfd8044ec Maintenace: add definitions for command status register. 2000-04-19 01:19:04 +00:00
matt 79a5b2164e Remove autconf stuff. not needed and wrong. 2000-04-18 21:25:31 +00:00
minoura dd8c46b8be Explicitly include opt_m680x0.h. 2000-04-18 21:06:06 +00:00
minoura 64a8c7e0c8 defopt M680[2346]0. 2000-04-18 21:04:51 +00:00
matt 414d3f059d Compile -Os instead of -O2 (optimize for space). 2000-04-18 20:47:04 +00:00
ragge d334fb3019 Handle NCR5394 SCSI as NCR5380. (Doesn't matter, it will use the ROM
routines anyway).
2000-04-18 20:25:13 +00:00
ragge 86d5f2d67d Add RPB number for VS4000 SCSI. 2000-04-18 20:23:54 +00:00
tsubai be4988ee6d Make kernel profiling work. 2000-04-18 17:06:01 +00:00
cgd 0d117aa518 regen for changed pcidevs 2000-04-18 16:38:12 +00:00
cgd 88e62f7c84 SiByte, Inc. is vendor 0x166d. 2000-04-18 16:37:00 +00:00
mhitch a218b8543c Enable cache on the 4000/VLC. 2000-04-18 16:28:04 +00:00
mhitch a90cf56cda PC_ICR doesn't exist on the 4000/VLC and trying to read it apparently
causes problems when the cache is enabled.  Don't access it if boardtype
is VAX_BTYP_48.
2000-04-18 16:25:59 +00:00
mhitch 6c0d2ca981 Add some defines gleaned from OpenVMS to enable cache on the 4000/VLC. 2000-04-18 16:23:42 +00:00
tron 939041f1aa Fix typo in last commit. 2000-04-18 14:48:53 +00:00
eeh c58f0ee9cd Prevent the system from getting watchdog reset by returning directly to user
mode if restoring the user window traps.  Also reduce the time we run with
%tl>0.
2000-04-18 02:12:25 +00:00
eeh 2aec15d3d3 Turn off traptrace before printing a panic message so we don't flush the useful
traces out with the printf guts, and wrap some lines at 80 columns.
2000-04-18 02:07:57 +00:00
pk 4665cccb20 Comment-out the RASTERCONSOLE_{BG,FG} color settings; they represent
the default initialization.
2000-04-17 21:48:23 +00:00
pk a558005cec When constructing `ri_devcmap[]', pack four instances of the LUTs in each
32 bit wide entry (as not documented in the non-existent rasops(9)..)
2000-04-17 20:37:28 +00:00
ragge a1413dca83 Fetch the SCSI ID out of NVRAM instead, if possible. 2000-04-17 20:36:23 +00:00
pk d5a5871d3c Make sure to reset the CPU context in ctx_free(). 2000-04-17 20:32:00 +00:00
oster 5845348e54 Revert last change (the last change was not necessarily desirable, and
had some other minor side-affects that were troublesome).
2000-04-17 19:35:12 +00:00
drochner 5e990a7f7c implement bus_space_vaddr() 2000-04-17 17:39:17 +00:00
drochner 13c9f8d398 implement bus_space_vaddr() 2000-04-17 17:24:48 +00:00
cgd a267efd061 #if 0 the (way bogus) PCI_CLASS_COMMUNICATIONS/PCI_SUBCLASS_BRIDGE_PCI (!!!)
match pointed out (again?) by Johan Danielsson, after i repeatedly told
him not to do something similar in com_cardbus.
2000-04-17 16:45:04 +00:00
ragge d37dfad561 DEC have the internal SCSI controller as ID6, and CDROM as ID7. 2000-04-17 16:30:40 +00:00
itojun 81e8059dfc fix endian issue in filling in interface id.
better sync with kame (nuke space at EOL).
2000-04-17 16:26:07 +00:00
mrg 9dc12ba15b regen 2000-04-17 14:33:11 +00:00
mrg a6f7a7855f implement lchflags(2), which does the chflags(2) dance without following
symlinks, and thus can operate on symlinks.  remove a bogus comment in
chflags(1) that claims symlinks do not have file flags.

XXX: todo -- make chflags(1) use lchflags(2) when given the right options.
2000-04-17 14:31:21 +00:00
joda 5c507c46b5 regen 2000-04-17 12:01:20 +00:00
joda 4f797c7b55 Panasonic KXLC003 2000-04-17 12:00:35 +00:00
joda 7dbedb5a11 rewrite match function to use CIS information 2000-04-17 09:21:59 +00:00
joda 1f1d169e20 extract serial funce 2000-04-17 09:16:38 +00:00
joda 6e5b98b12c add serial funce entry 2000-04-17 09:15:58 +00:00
tron 5bfc315184 Fix typo in comment. 2000-04-17 07:57:21 +00:00
thorpej d8bccc7c6e Regen. 2000-04-17 00:26:45 +00:00
thorpej fcd420cf5d Add product ID for the S3 Trio3D/2X AGP graphics adapter. 2000-04-17 00:26:22 +00:00
christos 18e39b7462 PR/9901: mycroft: make select guts partially visible for X/Open 5. 2000-04-16 23:12:13 +00:00
pk 470504f184 Use screen attributes passed to our hardware rasops routines.
Move colormap initialization to cg6reset(), so this is also done
on last close of the framebuffer device (e.g. after X server shutdown).
2000-04-16 22:17:03 +00:00
pk a644297344 Initialize the rasops device colormap to match colormaps used by
our supported devices (including even coloured text on the console).
2000-04-16 22:12:05 +00:00
pk 065ce82243 Switch initial colormap setup again to be compatible with the PROM's,
i.e. background at index 0: white, foreground at index 255: black.

Also, allocate a slice for an ANSI colormap, so we can experiment
with coloured text on the bare console.
2000-04-16 22:07:24 +00:00
pk 0ba1516cd7 Use a default attribute to restore the display mode to original settings.
Also, pass in WSATTR_COLORS at all times when allocating screen attributes
since without it we cannot even get black-on-white from rasops(9).
2000-04-16 21:49:49 +00:00
chs 9431f1857b change "nextvnodeid" from a global in namei.h to a static in
the one function that uses it.
2000-04-16 21:41:49 +00:00
chs d0fb21715e limit the number of namecache entries to numvnodes rather than desiredvnodes.
getnewvnode() has been changed to virtually guarantee that we'll have more
vnodes than "desired", so previously there would always be more vnodes
than namecache entries.  this fixes PR 9792.
2000-04-16 21:39:57 +00:00
pk 8505eb6375 Slight optimization when searching the video parameter table. 2000-04-16 21:01:43 +00:00
chs e34eb900c0 remove an LBL ifdef that we can't turn on anyway. 2000-04-16 20:59:49 +00:00
chs 46faa6bb58 remove ifdefs to skip htons() on some big-endian platforms. 2000-04-16 20:58:52 +00:00
chs d444bb4032 undo rev 1.13, which is to say, don't block interrupts while deactivating
one pmap and activating another.  this isn't actually necessary (since
pmap_activate() and pmap_deactivate() affect only user-level mappings,
which cannot be accessed from interrupts anyway), and pmap_activate()
is very slow on old sun4c sparcs so we can't block interrupts for this long.
this fixes PR 8322.
2000-04-16 20:52:29 +00:00
thorpej 2f7f997512 Oops, forgot RCS ID. 2000-04-16 19:46:54 +00:00
thorpej 506bf156e0 Kernel configuration file for my Abit BP6+dual Celeron machine. This
could be used as an example configuration file for that motherboard.
2000-04-16 19:46:21 +00:00
augustss 876b21e514 Add more items and reorganize. 2000-04-16 18:38:44 +00:00
matt 0aae0cd7a6 only print packets if debug > 1 2000-04-16 17:03:42 +00:00
matt ee754e5548 Autoconf for SCSI stuff on VS4000s. 2000-04-16 16:03:42 +00:00
matt 5fa416e77a This should have never been checked in. it's what this directory is supposed
to make.  opps.
2000-04-16 15:59:02 +00:00
itojun 3e34240544 perform neighbor unreachability detection on p2p links (spec requires
it for bidir p2p links).
improve -i in ndp(8) to allow tweaking per-interface ND flag on.
fix ndp(8) infinite loop on certain routing table setup.
2000-04-16 15:27:59 +00:00
itojun 30272756a8 better sync with latest kame (cosmetic only). 2000-04-16 15:00:56 +00:00
kleink 903fce95c7 * GC two unused variables.
* Printf format nits.
2000-04-16 14:44:03 +00:00
minoura 4d4c982aa3 all -> realall. 2000-04-16 14:19:53 +00:00
minoura 311c19c0d5 Sync w/ GENERIC. 2000-04-16 14:17:59 +00:00
nisimura a01973aecb Change the way how pmap_protect() modifies the protection of KSEG2
space using MIPS_TBRPL() call.  It avoils to 'vistimize' a possibly
useful TLB entry. XXX MachTLBUpdate() will be retired, soon.
2000-04-16 10:16:19 +00:00
nisimura 8feff14832 Fix a typo in the previous change. 2000-04-16 10:08:32 +00:00
ragge 9403f3fec8 Reset the device before starting the init sequence.
Add shutdown hook.
2000-04-16 09:55:39 +00:00
ragge 637d2e3a82 Be a little bit more generous with TBIA. 2000-04-16 09:42:22 +00:00
ragge 7ad2b0ede3 Call doshutdownhooks(). 2000-04-16 09:41:51 +00:00
nisimura 4edcc4fca2 Change the way to implement zero copy data move in pagemove() using
MIPS_TBRPL().  It saves about 20 instructions to run for each
iteration, and avoids TLB polution.  Currently works for MIPS1 only
configuration.
2000-04-16 09:09:42 +00:00
nisimura 7717409808 Introduce MIPS_TBRPL() which replaces a TLB entry of given vaddr
with new entryHi and entryLo pair iff found in TLB.  Works only
for KSEG2 this moment.  mips3 version will follow.
2000-04-16 09:00:26 +00:00
tsutsui 95dd4d0f2c Include "zstty.h" instead of "zsc.h". 2000-04-16 05:42:40 +00:00
oster c71398f7a9 Don't allow configuration where the specified SectPerSU may result in IO larger
than MAXPHYS being sent to underlying devices.  Addresses PR#9868.
Will change if/when MAXPHYS goes bye-bye.
2000-04-16 03:24:26 +00:00
takemura 95e706c931 Don't call IsDlgMessage() if we are on Windows CE 2.01. 2000-04-16 03:17:59 +00:00
matt 92b3e1fecd Use objcopy to emit the binary and linked around for debugging. 2000-04-16 01:44:36 +00:00
matt 5e9394eecb move ustarfs to end so that '@" can be avoided. from mhitch. 2000-04-16 01:42:41 +00:00
matt faec4da943 Add missing cases for MARIAH/SOC/NVAX and fix a comment or two. 2000-04-16 01:41:23 +00:00
soda c56a43535d remove following symbols which became unnecessary in recent cpu_intr() change:
mips_hardware_intr
	MIPS3_INTERNAL_TIMER_INTERRUPT
	mips3_intr_cycle_count
	mips3_timer_delta
2000-04-15 22:05:51 +00:00
soda 94ee00e39d define `ssir' here, rather than misp/mips/trap.c (like other mips ports) 2000-04-15 22:02:26 +00:00
soda 79bdf6e4a6 adapt interrupt() -> cpu_intr() change 2000-04-15 22:01:14 +00:00
soda b3dcd5c3ee add some TODOs.
overblocking and related problems are currently common to all mips ports.
2000-04-15 21:57:37 +00:00
scw 9b7b8d2fff Bah, forgot to add intr.h during my last round of roto-tilling. 2000-04-15 21:20:35 +00:00
tsarna a32696c2de Death to nfsiod!
It is replaced by kernel threads that do the same thing. The number of
kernel threads used is set with the vfs.nfs.iothreads sysctl.
2000-04-15 21:14:48 +00:00
scw 8e95e817ec Move <machine/cpu.h> above <m68k/*.h> so we get M680x0 #defines
for those m68k ports which define them in the former file.
2000-04-15 20:31:27 +00:00
is 136b230eaa Don't use runtime systems' includes. 2000-04-15 20:10:41 +00:00