Commit Graph

37302 Commits

Author SHA1 Message Date
perseant 37f567639c Test whether the filesystem is an LFS before trying to read the alternate
superblock (whose disk address is stored in the primary superblock).  Also,
refuse to mount a filesystem whose superblocks overlap or where the alt.
superblock has a lower disk address than the primary superblock.

Solves PR#10001.
2000-04-29 00:23:00 +00:00
mycroft 73ac8c709b Add a concept of the `background attribute'. This is the same as the
current attribute, but has all non-color flags turned off.  Use this when
doing erasure, as this allows us to optimize repainting in curses.

XXX The way the default attribute is handled is totally bogus and needs to
be fixed.
2000-04-28 21:56:16 +00:00
augustss 23bcab075a Don't request sense after INQUIRY. From FreeBSD & OpenBSD. 2000-04-28 21:34:05 +00:00
augustss d2e2dce826 Regen. 2000-04-28 20:54:39 +00:00
augustss 0b9c397110 Add 2 more eap audio devices. 2000-04-28 20:54:10 +00:00
soren 9c2835a1c4 Make sure to read the clock before we leave the 'cold' state. 2000-04-28 19:58:04 +00:00
soren 2cfb26c801 Zero free pages in the idle loop. 2000-04-28 19:25:55 +00:00
is 4cacfc5684 change 10base-t media _setting_ to set autodetect instead.
Contrary to what the rtl8019 docs say, this seems to be necessary.
Observed by myself when implementing non-auto earlier, and independently
complained about by Antti Kante in PR 9962.
2000-04-28 17:49:03 +00:00
uch bd5f21ffeb add PCIBIOS_ADDR_FIXUP, PCIBIOS_IRQS_HINT configuration. and its sample. 2000-04-28 17:23:51 +00:00
soren 78a464a74d Add microtime(). 2000-04-28 17:23:40 +00:00
uch cc30f00dd3 PCI I/O address fixup routine.
When BIOS don't asign PCI I/O address space to device,
        allocate it without conflict and write to PCI configuration header.
2000-04-28 17:19:10 +00:00
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