Commit Graph

74539 Commits

Author SHA1 Message Date
kent
5610969544 ansify and KNF 2005-01-11 04:23:14 +00:00
briggs
9750b8741d In epshutdown(), do not attempt to disable the interface when stopping it
because we're about to write to it again (with a global reset).  Disable
the interface explicitly after the reset is written.
2005-01-11 04:16:27 +00:00
kent
dc63d1767d fix compilation errors 2005-01-11 03:45:17 +00:00
chs
67402a485f enable powersave mode on 7450 and family.
also, the HID0_DOZE bit in this context doesn't mean "doze",
it's actually "enable extra BATs".  add an alias for this bit
and use it as appropriate.
2005-01-11 02:09:54 +00:00
chs
cf6b9650a5 remove leftover debug printf. 2005-01-11 02:04:01 +00:00
chs
320acb3f66 assert that PSL_EE is on when do_pending_int() is called
(since things don't work too well if it's not).
2005-01-11 02:02:41 +00:00
uwe
c1574ed6c1 Add keyboard layout for Jornada 680/690 Spanish (ABE).
From Alfonso Fernandez.
2005-01-11 01:54:20 +00:00
uwe
080b48020c Add KB_ES | KB_MACHDEP placeholder for Jornada 680/690 Spanish (ABE). 2005-01-11 01:39:36 +00:00
itojun
4db58ab415 fixed a unexpected addr/port matching failure in SA management
FreeBSD-PR: kern/72393
2005-01-11 01:30:17 +00:00
uwe
e9fd18895b Regen for Compaq Aero 8000 and Jornada 680/690 with Spanish keyboard. 2005-01-11 01:05:32 +00:00
uwe
2a292865c4 Add Compaq Aero 8000 (requested by Linux folks).
Add Jornada 680/690 with Spanish keyboard.
2005-01-11 01:03:42 +00:00
joff
b6b2f0d2df Use hd44780var.h instead of hd44780_subr.h 2005-01-11 00:59:06 +00:00
joff
e1191d101f Replace hd44780_subr.h to hd44780var.h and install to userland. 2005-01-11 00:57:56 +00:00
mycroft
7f1fe4e81f Rearrange some code slightly to avoid uninitialized variable warnings. 2005-01-11 00:19:36 +00:00
joff
5b4ec09e40 Add GPIO addresses 2005-01-10 23:17:53 +00:00
kent
8874b02756 2.99.13 (audio in-kernel API changes) 2005-01-10 22:08:55 +00:00
kent
23b5d91433 merge kent-audio1 branch, which introduces audio filter pipeline to the MI
audio framework


Summary of changes:

* struct audio_params
  - remove sw_code, factor, factor_denom, hw_sample_rate,
hw_encoding ,hw_precision, and hw_channels.  Conversion information
is conveyed by stream_filter_list_t.
  - change the type of sample_rate: u_long -> u_int
  - add `validbits,' which represents the valid data size in
precision bits.  It is required in order to distinguish 24/32bit
from 24/24bit or 32/32bit.

* audio_hw_if
 - add two parameters to set_params()
	stream_filter_list_t *pfil, stream_filter_list *rfil
   A HW driver should set filter recipes for requested formats
 - constify audio_params parameters of trigger_output() and
trigger_input().  They represent audio formats for the hardware.
 - make open() and close() optional
 - add int (AUMODE_PLAY or AUMODE_RECORD) and audio_params_t parameters
 to round_blocksize()

* sw_code is replaced with stream_filter_t.
  stream_filer_t converts audio data in an input buffer and writes
into another output buffer unlike sw_code, which converts data in
single buffer.
  converters in dev/auconv.c, dev/mulaw.c, dev/aurateconv.c,
dev/tc/bba.c, dev/ic/msm6258.c, and arch/arm/iomd/vidcaudio.c are
reimplemented as stream_filter_t

* MI audio
 - audiosetinfo() builds filter pipelines from stream_filter_list_t
filled by audio_hw_if::set_params()
 - audiosetinfo() returns with EINVAL if mmapped and set_params()
requests filters
 - audio_write(), audio_pint(), and audio_rint() invoke a filter
pipeline.
 - ioctl() for FIONREAD, AUDIO_WSEEK, AUDIO_GETIOFFS,
AUDIO_GETOOFFS, and audio_prinfo::{seek,samples} for
AUDIO_GETINFO handle values for a buffer nearest to userland.

* add `struct device *' parameter to ac97_attach()

* all of audio HW drivers follow audio_hw_if and ac97 changes
2005-01-10 22:01:36 +00:00
chs
a1dc78ab6b use a global variable to ensure that only one instance is configured
rather than requiring that its unit number be zero.
simplify by not pretending that nexts can have more than 1 zsc.
2005-01-10 17:07:09 +00:00
chs
da79fa5c17 de-__P, remove register, ansify. 2005-01-10 17:01:55 +00:00
chs
84f5997a1a really remove register. 2005-01-10 17:01:22 +00:00
chs
69ef38f074 de-__P, remove register, ansify, other cleanup. 2005-01-10 16:47:48 +00:00
chs
d65ac815a8 use a global variable to ensure that only one instance is configured
rather than requiring that its unit number be zero.
simplify by not pretending that powermacs can have more than 1 zsc.
2005-01-10 16:38:06 +00:00
chs
35cacfdeb8 de-__P, remove register, ansify. 2005-01-10 16:34:46 +00:00
tls
abcbeb46d9 Users have observed that the amount of memory used by the metadata cache
can in some situations exceed the high-water mark, and stay there once it
gets there.  Adjust the canrelease function so that it will immediately
bring us back down to the high-water mark in this situation.

How can this happen at all?  Consider a machine with two filesystems, one
with a much larger blocksize than the other.  If the small-block filesystem
is very busy, growing the cache up to the high-water mark, and then the
large-block filesystem becomes busy, buffers will be recycled (since we
are at the high-water mark) but _grow each time they're recycled_.  Once
we're above the high-water mark, the canrelease call in allocbuf (without
this change) doesn't shrink us back down below it; so things get worse and
worse.
2005-01-10 15:29:50 +00:00
matt
b046d5ecf9 Now that countless UVM bugs have been fixed, enable "topdown" memory
allocation by default.
2005-01-10 05:42:09 +00:00
mycroft
87e784e1de Now that countless UVM bugs have been fixed, enable "topdown" memory
allocation by default.
2005-01-10 05:34:51 +00:00
mhitch
248d777d24 Fix Maxine keyboard and mouse ioctl routines to return EPASSTHROUGH for
unrecognized commands so they can be passed to other handlers.
2005-01-10 04:43:34 +00:00
mhitch
4deb82db56 Maxine mouse buttons were being mapped incorrectly (old dtop.c code mapped
them to serial mouse buttons, which were then mapped into events to pass
to the X server).
Also fix bug in mouse motion - putting 2 unsigned bytes into an integer
resulted in a 16-bit unsigned value, so negative mouse motion didn't work.
2005-01-10 04:40:05 +00:00
lukem
4ae6a6d6f4 Support -DNOINET6 to disable USE_INET6 (a la the FreeBSD section earlier) 2005-01-10 02:10:47 +00:00
smb
ddd2ade252 Add a software watchdog timer facility. Because this slightly
changes the "tickle" model of wdogctl(8), it was modified as well;
while I was in there, I cleaned up the argument parsing.

The code was reviewed by simonb@.
2005-01-09 22:51:32 +00:00
joff
fdb2df8f5f enable pcic(9) PCMCIA controllers in default kernel 2005-01-09 21:44:32 +00:00
joff
6b75e7b0f9 Allow for pcic(9) attachments on the ISA bus 2005-01-09 21:40:02 +00:00
joff
0686f5514c call isa_bs_mallocok() right before ISA bus attachment 2005-01-09 21:35:51 +00:00
joff
453e7edc70 Implement extent(9) based management of ISA io/mem so pcic(9) has
a chance of working.
2005-01-09 21:32:08 +00:00
christos
4bfe82cbac Flip the order of two lines I mixed. Thanks to wiz for noticing. 2005-01-09 20:25:26 +00:00
christos
870890917c now takes an optional filename. 2005-01-09 19:23:26 +00:00
christos
82ee9647b8 Allow PT_DUMPCORE to specify the core filename. 2005-01-09 19:22:55 +00:00
tsutsui
e34a3b7f08 Small optimization in vmapbuf()/vunmapbuf().
BTW, should we also pass 'VM_PROT_READ|VM_PROT_WRITE' to flags
with PMAP_WIRED for pmap_enter() in vmapbuf()?
2005-01-09 17:41:34 +00:00
tsutsui
a9b3f31984 Some cosmetics:
- remove __P()
- use ansi decls
- u_int8_t, u_char -> uint8_t
- use macro for debug printfs
- some KNF
2005-01-09 16:59:41 +00:00
chs
8975a0856f adjust the UBC mapping code to support non-vnode uvm_objects.
this means we can no longer look at the vnode size to determine how many
pages to request in a fault, which is good since for NFS the size can change
out from under us on the server anyway.  there's also a new flag UBC_UNMAP
for ubc_release(), so that the file system code can make the decision about
whether to cache mappings for files being used as executables.
2005-01-09 16:42:43 +00:00
martin
5689de1472 Bugfixes and acceleration support.
From Michael Lorenz.
2005-01-09 16:29:20 +00:00
joff
5f20950e38 o reversed sense of RS in writereg
o attempt HD44780 reset on open if LCD not detected at bootup
o skip everything if sc_dev_ok == 0 in writereg/readreg
2005-01-09 15:48:51 +00:00
joff
838c742991 Handle (i.e. don't lock up the kernel in hd44780_busy_wait) the case of the
LCD not being there.
2005-01-09 15:43:56 +00:00
tsutsui
8d65a2e17f - Switch to wscons(4) with MI vga(4), pckbc(4) and pms(4).
- Reorganize console initialization code like i386 rather than cninit().
Note old pccons/opms and ofcons support still works.

XXX Xserver is not tested because XF86_4 doesn't have support
XXX for IGS CyberPro2010 on shark. (yet?)
2005-01-09 15:39:59 +00:00
tsutsui
7da0e84338 - Adapt to vga_common_attach() API changes.
- Add more VGA initialization code to vga_ofbus_cnattach() from pccons.c.
- Export vga_ofbus_cnattach() prototype for consinit() ops.
2005-01-09 15:29:27 +00:00
tsutsui
01c812cc7b Add bus_space_copy_region_2() op, which is required by MI vga(4),
from sys/arch/arm/arm/bus_space_asm_generic.S.

XXX: isa_io_asm.S and bus_space_asm_generic.S is mostly identical.
2005-01-09 15:26:19 +00:00
kanaoka
dcccc9d794 sys/dev/ic/rtl8169.c:
- re_attach(): Use bus_dma* directly instead of calling re_alloc().
 - re_attach(): Free bus_dma* resources if attach fails.
 - re_detach(): Free bus_dma* resources.
 - re_newbuf(): Remove unnecessary error check.

sys/dev/ic/rtl81x9reg.h:
 - Define RTK_NTXSEGS.

sys/dev/ic/rtl81x9var.h:
 - Add new members to struct rtk_list_data for bus_dma*.
2005-01-09 12:25:25 +00:00
yamt
d502f705e1 ifioctl: don't use super user priviledge unless it's needed. 2005-01-09 12:18:46 +00:00
kanaoka
6488f7bcc4 - Use aprint_*.
- Remove unnecesarry code.
 - Changes some cosmetic.
2005-01-09 12:15:36 +00:00
mycroft
e72fc6717e Whoops -- move the location of the VOP_OPEN()/VOP_CLOSE(), et al, from
foo_mountfs() to foo_mount(), to match the new mountroot API.
Also, for ext2fs and lfs, copy some restructuring from ffs to allow changing
file system parameters without specifying the device name.
(ntfs could use some more work.)
2005-01-09 09:27:17 +00:00
mycroft
0461b30ac3 Rework the mountroot interface so that vfs_mountroot() opens the root device
and just passes it on to the file system functions.  This avoids opening and
closing the device several times.

Mentioned on tech-kern some time ago, IIRC.  I've been running this for a
long time.
2005-01-09 03:11:48 +00:00
yamt
e5bd47dc3c invalidate cache if filesize is changed besides our activity
because it means that we're out of sync with the server.
2005-01-09 01:32:32 +00:00
cube
da24800d8c Install net/if_tap.h. 2005-01-08 22:28:51 +00:00
cube
0615d0207e Addition of tap(4).
NAME
     tap - virtual Ethernet device

SYNOPSIS
     pseudo-device tap

DESCRIPTION
     The tap driver allows the creation and use of virtual Ethernet devices.
     Those interfaces appear just as any real Ethernet NIC to the kernel, but
     can also be accessed by userland through a character device node in order
     to read frames being sent by the system or to inject frames.

     In that respect it is very similar to what tun(4) provides, but the added
     Ethernet layer allows easy integration with machine emulators or virtual
     Ethernet networks through the use of bridge(4) with tunneling.

``Qui tacet consentire videtur.''
2005-01-08 22:27:54 +00:00
joff
9a859b8fc6 Support LCD by default on TS-7200 2005-01-08 20:41:56 +00:00
joff
63b4d87a37 Add tslcd device 2005-01-08 20:39:18 +00:00
joff
c8da149022 add tslcd 2005-01-08 20:26:28 +00:00
joff
8bf98807a3 Add tslcd device 2005-01-08 20:24:59 +00:00
joff
c87859c9da Support for bit-banging HD44780 bus cycles on the generic LCD header 2005-01-08 20:23:32 +00:00
joff
762a60356c Replace the rwrite and rread functions that take a bus_space_tag_t and
bus_space_handle_t with the new writereg and readreg
functions that take a struct hd44780_chip * and a u_int32_t rs (register-select)
2005-01-08 20:21:00 +00:00
joff
3d76a36e9e Change TIMEOUT_XXX to HD_TIMEOUT_XXX 2005-01-08 20:19:08 +00:00
joff
79ce2f10af Various improvements for connecting HD44780s using bit-banging style devices
o add sc_writereg and sc_readreg functions that get passed the hd44780_chip
  struct and RS (register-select) signal
o add sc_dev to struct hd44780_chip so upper level read/write routines can get
  back to their parent softc
o change TIMEOUT_XXX to HD_TIMEOUT_XXX
o remove sc_rread and sc_rwrite in favor of new sc_writereg and sc_readreg
o add new flag HD_UP to sc_flags that is set once 4bit/8bit mode selection
  has been finalized.
o remove sc_irwrite, MD readreg/writereg should check state of HD_UP instead
2005-01-08 20:17:22 +00:00
mhitch
d6b26ac1f0 Fix MAXINE keyboard multi-key press bug. Keyboard sends all currently
depressed keys in each message.  Any keys in current message that are
also present in previous message are ignored.  However, copying a byte
array into an integer array and comparing entry by entry doesn't have
the desired effect.  Change the definition of the save buffer to match
the current message buffer data.
2005-01-08 18:48:34 +00:00
fredb
f8f4807136 Regen. 2005-01-08 16:07:20 +00:00
fredb
99ad984e37 Recognize the Broadcom 5721 Gigabit Ethernet, as found on SuperMicro P8SCi
motherboards.
2005-01-08 16:00:03 +00:00
ginsbach
4b4b860766 regen 2005-01-08 04:58:22 +00:00
ginsbach
d3c0713e84 Use the more common name, Radeon U1, for the IGP 320M. 2005-01-08 04:53:39 +00:00
briggs
1a7331ca01 cosmetic changes. 2005-01-08 04:24:05 +00:00
joff
de9b3a018a Add TS7200/EP93xx ARM related device names 2005-01-08 04:04:00 +00:00
briggs
c5aa4aada2 Make obio match multiple times to allow access to devices on systems
where there might be devices under two I/O bridges (like PowerBook G3s).
Attempt to have devices under 'gatwick' share parental interrupt.  This
may still need some work, but a step in the right direction.
From Tim Kelly.
2005-01-08 03:24:58 +00:00
yamt
6292485301 constify broadcastaddr. 2005-01-08 03:18:18 +00:00
yamt
06fbfe5c17 constify. 2005-01-08 03:16:51 +00:00
yamt
d06c4aee84 remove an unused member, enm_ec from ether_multi. 2005-01-08 03:13:09 +00:00
yamt
68c071389c nfs_lookup: check n_nctime for positive entries as well to improve
cache consistency.
2005-01-08 03:12:30 +00:00
yamt
2156a63f02 netatalk: remove a redundant extern decl of etherbroadcastaddr. 2005-01-08 03:11:03 +00:00
joff
2f2edb0a13 Support up to 4 TS-ETH10 ethernet boards on the PC/104 bus 2005-01-08 02:58:03 +00:00
joff
8d1a86c97d add tscs 2005-01-08 02:56:35 +00:00
joff
4b903bb725 Support for TS-ETH10 PC/104 enet isa card based on CS8900 2005-01-08 02:55:52 +00:00
briggs
4137e66929 Allow MSR[POW] off for power saving on 604-era CPUs. From Tim Kelly.
XXX -- needs benchmarking
2005-01-07 21:31:04 +00:00
briggs
35a39caef5 Don't attempt to probe the cache with l2cr on 604ev. From Tim Kelly. 2005-01-07 20:41:35 +00:00
matt
6ce9ee4620 Add a dtype for flash memory disks. 2005-01-07 18:29:15 +00:00
yamt
f276045e22 add ETHERTYPE_SLOWPROTOCOLS. (0x8809) 2005-01-07 12:37:55 +00:00
tsutsui
6963e49e45 Add options KLOADER, to make it easier to boot a new kernel on the console. 2005-01-07 11:32:43 +00:00
skrll
6a8415b9ef KNF 2005-01-07 08:02:16 +00:00
briggs
8bf4e0c153 - Use the O'Hare mask on systems with /bandit/ohare. This basically treats
the mediabay interrupt as an internal interrupt.
- Simplify gc_reenable_irq() a bit.
- Ensure that interrupts are off when we call gc_reenable_irq().
- Make the handling for stuck interrupts on old-style interrupt controllers
  a bit more robust.  If we get stuck interrupts, don't panic.  Just disable
  them.
2005-01-07 06:11:20 +00:00
briggs
8dce4f9979 - If pm_pmgrop_pm2() fails, return after splx() -- there's no sense in
continuing.
- Note that there really needs to be bounds-checking on PMData.
2005-01-07 05:03:08 +00:00
briggs
f537a73f9e Increase buffer from 32 bytes to 128 bytes in PMData. I have observed a
response from the device that had 120 bytes of data.  The lack of any
bounds-checking in pm_direct.c allowed that data to smash the stack in
the interrupt handler.
2005-01-07 04:59:58 +00:00
ginsbach
661eb28d4c Add command to read the defect data from a direct access device. 2005-01-07 02:08:34 +00:00
perry
0d3f1b36a7 space-then-tab ixpide so it comments out nicely. 2005-01-07 01:31:14 +00:00
mycroft
13495aa242 If sa_upcall() fails (which is always going to be due to resource exhaustion),
do not leak siginfo structures.

Note that in the cases of trap signals and timer events, losing this
information could be very bad; right now it will cause us to spin until the
process is SIGKILLed.

"Needs work."
2005-01-06 19:26:41 +00:00
joff
cff5504bf7 Add missing newline after preposterous time warning printf 2005-01-06 16:11:54 +00:00
he
33d45d5d2a Add recognition of LSI Logic FC919X chips, as found on
LSI Logic LSI7102XP-LC controllers.
Document FC919X and FC929X with separate entries in the man page.
2005-01-06 14:58:00 +00:00
he
c4d71a859c Regen after adding entry for LSI Logic FC919X. 2005-01-06 14:56:22 +00:00
he
9d71f19b13 Add entry for LSI Logic FC919X, as found on LSI Logic LSI7102XP-LC
controllers.
2005-01-06 14:55:37 +00:00
yamt
f80647ef1e nfs_loadattrcache: invalidate access cache when ctime is changed. 2005-01-06 11:52:44 +00:00
scw
5643984efd In iopiic_wait(), latched status bits in the ISR is cleared by writing
ones to the appropriate bits, not zeroes. In this case, just write the
value from a previous read of the register.
2005-01-06 09:34:02 +00:00
uwe
b667c1f82d Fix lint stub for va_start so that lint is actually happy about it. 2005-01-05 23:39:51 +00:00
simonb
a773da1261 Revert previous method of stripping out the .eh_frame sections from
objects as they're built now that we strip them all out at final link
time.
2005-01-05 12:18:18 +00:00
simonb
888d4fa34c Discard any .eh_frame sections at link time by asking ${LD} to dump the
current linker script, change references for any .eh_frame sections so
that they go in to the special "DISCARD" section so that they are not
included in the final object, and use the resultant linker script when
actually linking the bootblocks.

Idea (and most of the sed expression) from Jakub Jelinek.
2005-01-05 12:16:49 +00:00
tsutsui
cac3513fa5 Purge vm_offset_t. 2005-01-05 10:25:43 +00:00
tsutsui
41e8037c12 Use MI <dev/ic/pcdisplay.h>. 2005-01-05 09:17:36 +00:00
tsutsui
f97d50b3cf 'device-major ofcons' is required by device ofcons, not ofwgencfg. 2005-01-05 09:15:19 +00:00
tsutsui
ccf08b263e - Remove attribute shark, which is always defined.
- arch/shark/ofw/ofisapc.c is required by ofisapc, not pc.
2005-01-05 09:13:29 +00:00
skrll
3a5765c0b0 Correct two reloc numbers/names 2005-01-05 09:12:38 +00:00
tsutsui
f8d82b0fa1 options<space><tab> 2005-01-05 09:06:33 +00:00
tsutsui
e2ccb8e626 Bump size of SYMTAB_SPACE. 2005-01-05 09:05:39 +00:00
tsutsui
944f772de9 options<space><tab> 2005-01-05 09:01:24 +00:00
joff
9c1013d65c Avoid duplicate IRQ deliveries by processing at most 1 IRQ for each VIC read 2005-01-05 04:53:50 +00:00
yamt
22cf117f61 km_vacache_alloc: UVM_PROT_ALL rather than UVM_PROT_NONE
so that uvm_kernacc works.  PR/28861. (FUKAUMI Naoki)
2005-01-05 00:58:57 +00:00
matt
1e9fedba3e Make sure to get the right softc in rriodone. 2005-01-04 19:36:48 +00:00
dyoung
00f3f1b613 In ad hoc mode, start the ath rate adaptation with the lowest, most
robust transmit bit rate.  From Greg Troxel.
2005-01-04 01:45:04 +00:00
dyoung
e470ffcf3b Set initial conditions to guarantee that when read_seeprom toggles
Chip Select, it turns *on* rather than *off*.
2005-01-04 01:04:52 +00:00
dyoung
9a756f795b Add the logic for IBSS merges. 2005-01-04 01:00:30 +00:00
dyoung
5dc6377838 IBSS-merge clean-up, inspired by some Linux patches from Jon Anderson
(mail@janderson.ca): remove ieee80211_ibss_merge's TSFT argument.
Do the TSFT comparison in the drivers (ath, atw).  Remove a lot of
extraneous debug statements from ieee80211_ibss_merge.

Set the ieee80211_node's state to IEEE80211_STA_BSS after it's been
copied to the ic_bss, not before.

In struct ieee80211_node, make the ni_tstamp field a union of a
uint64_t and the 8 TSF octets so that it's easier to compare a
neighbor's TSF with the local TSF.

Log IBSS merges (Greg Troxel's suggestion).  Also log IBSS creation.
These are rare and important events that deserve to be logged.
2005-01-04 00:56:51 +00:00
dyoung
4c03aed52f In ieee80211_getmbuf, remove the #ifdef __FreeBSD__ code. Check
for MCLGET success using the (m->m_flags & M_EXT) idiom.
2005-01-04 00:36:18 +00:00
dyoung
eeb33155cd Fix a typo. 2005-01-04 00:34:58 +00:00
heas
fe4b3cd078 In tcp_respond(), clear the m_pkthdr.csum_flags that was inherited from the
received packet so that the checksum is not performed twice.  Also,
tcp_respond() does not fill-in the m_pkthdr.csum_data, so a h/w checksum may
have the wrong offset.

OK from Jason Thorpe.
2005-01-03 19:47:30 +00:00
yamt
546bb99833 reapply uvm_map.c rev.1.156 (use a zero-sized array instead of
c99 flexible array member) for ports which still use gcc 2.95.
from Havard Eidnes.
2005-01-03 19:46:22 +00:00
thorpej
d3f6e9192f Add IO_NORMAL and IO_EXT flags, that will be used by file system extended
attribute support code.
2005-01-03 16:33:33 +00:00
yamt
0c5ceb72e4 km_vacache_alloc: specify va hint correctly rather than
using stack garbage.  PR/28845.
2005-01-03 04:01:13 +00:00
dyoung
66e0c6fbb9 sys/dev/ic/rtw.c:
Cosmetic: remove two short ladders from rtw_init.  Fit the
        NIC registers print-out onto one line using the RTW_PRINT_REGS
        macro.

sys/dev/ic/rtwvar.h:

        Add RTW_PRINT_REGS wrapper macro for rtw_print_regs.  It
        is a null op unless defined(RTW_DEBUG).
2005-01-03 03:25:06 +00:00
dyoung
4903d25d90 In sys/dev/ic/rtw.c:
Use clue from rtk(4) and re(4) to fix the rtw(4) packet
	filter.  Previously, I was using the wrong CRC32 function
	to hash multicast addresses; to compensate, I set the
	multicast filter to all 1s.  Now that I hash the addresses
	correctly, I do not any longer set the filter to all 1s.

	In rtw_ioctl, avoid gratuitous re-initialization when the
	interface flags change.  If a !IFF_UP -> IFF_UP transition,
	call rtw_init(); otherwise, only reload the packet filter.

In sys/dev/ic/rtwreg.h:

	Put useful combinations of Receiver Control Register flags
	in RTW_RCR_PKTFILT_MASK, RTW_RCR_MONITOR, and
	RTW_RCR_PKTFILT_DEFAULT.  (XXX RTW_RCR_MONITOR should be
	called RTW_RCR_PKTFILT_MONITOR.)
2005-01-03 03:07:12 +00:00
chs
ddc6ab738a drop the big lock in upcallret() like all the other platforms do. 2005-01-03 00:03:25 +00:00
chris
80ba0e9617 Remove direct references to TAILQ internal structures.
No functional change, just tidying up code.
2005-01-02 22:47:26 +00:00
scw
71d14cde75 Major re-write of the recently-committed Synaptics Touchpad driver,
prompted by jittery and/or random movement during tap gestures, lack
of edge motion, and a general desire to make use of the extra features
available with the native protocol.

 - Ditch the kernel thread; it was overkill for the small amount of
   processing required to deal with touchpad events.

 - If we fail to probe a Synaptics touchpad, issue a RESET command
   to ensure that whatever device is out there is left in a sane
   state (thanks to Reinoud Zandijk for the hint).

 - Completely re-write gesture support.

 - Put the touchpad in 80 packets per second mode and count them so
   they can be used to time gesture durations (instead of using
   mono_time).

 - Enhance up/down button support with options to use them to emulate
   the middle button or Z-axis events (like a traditional wheel mouse).

 - Add 'edge motion'. If a drag gesture is in progress, and the reported
   finger position moves to the touchpad's border region, continue
   to report movement events at a fixed rate as if the finger carried
   on moving in the same direction. This restores some functionality
   usually provided by the touchpad's firmware in PS/2 mode.

 - Filter successive movement events to reduce jitter. When scaling
   movement events, fold the remainder into the next event to prevent
   loss of information during slow/small finger movements. Pointer
   movement is now much more refined.

 - Add support for touchpads which can report more than one finger on
   the pad simultaneously. Optionally use this feature for middle/right
   button emulation (i.e. tap two fingers to emulate middle button).
   This feature is disabled by default (for now) to avoid surprise
   pasting of clipboard text. ;-)
2005-01-02 22:37:12 +00:00
mhitch
ee4185996c For Maxine serial console on a WSCONS kernel, use the correct channel
number.
2005-01-02 22:36:34 +00:00
mhitch
8bc24fad8f Fix long-standing error in interrupt index for Maxine built-in graphics
card.  It was using the same index as the Ethernet interface, but didn't
cause any problems until the new xcfb.c driver installed an interrupt
handler.  Ethernet interrupts went to the xcfb.c interrupt handler and
hung machine.
2005-01-02 22:34:57 +00:00
christos
c15f6c31fd Try one more time to pacify lint. 2005-01-02 22:00:14 +00:00
christos
b68cb5ea41 Simplify the lint case by providing simple versions of the va_ macros,
instead of defining the buildin macros used to construct them.
2005-01-02 21:55:59 +00:00
christos
603eb38ad9 make this compile again; hi potr 2005-01-02 21:15:48 +00:00
joff
33f8ad5c19 set L_SA_PAGEFAULT for prefetch aborts, too. Fixes kern/28828 2005-01-02 21:12:48 +00:00
mhitch
4b076289c1 Change screen blanking to be like other *fb.c drivers (and to not call
sfb_screenblank() needlessly).
2005-01-02 20:43:23 +00:00
mhitch
b603617fbc Fix and simplify incorrect check for screen blanking in WSDISPLAYIO_SVIDEO. 2005-01-02 20:41:20 +00:00
mhitch
c2f973c445 Fix a 3 year old error which caused px_init() to fail. Fixes PR 28798. 2005-01-02 19:25:56 +00:00
thorpej
6593d72e33 Add ENOATTR ("Attribute not found"). From FreeBSD. 2005-01-02 18:54:51 +00:00
christos
2b71b52431 Cast the sizeof operator to unsigned int in the __NFDBITS macro because it
is used as the RHS of a << operator. On machines where size_t is unsigned
long, and _LP64, we effectively get int32 << uint64 which is handled
differently in ansi c than K&R. In K&R the int32 would get promoted.
2005-01-02 18:33:14 +00:00
thorpej
4dfb0d5670 Regen for extended attribute system calls. 2005-01-02 17:47:29 +00:00
thorpej
aee687701e Regen for extended attribute VOPs. 2005-01-02 17:46:41 +00:00
thorpej
1c95472d01 Add the system call and VFS infrastructure for file system extended
attributes.

From FreeBSD.
2005-01-02 16:08:28 +00:00
martin
9eba7eabba PR kern/28837: fix undef typo. 2005-01-02 15:43:49 +00:00
tsutsui
290f8ccd57 - use ANSI function decls
- remove __P()
- u_intNN_t -> uintNN_t
2005-01-02 12:41:03 +00:00
tsutsui
1d25696d75 u_intNN_t -> uintNN_t 2005-01-02 12:22:18 +00:00
tsutsui
2be3acc29a u_intNN_t -> uintNN_t 2005-01-02 12:03:12 +00:00
dyoung
1236e46cff Guess the meanings of most registers on the baseband processor.
Available documentation is incomplete, so the true meanings will
have to be found out by painstaking experimentation.
2005-01-02 04:29:36 +00:00
dyoung
37420795ec Cosmetic: change u_int{8,16,32,64}_t to C99-style uint{8,16,32,64}_t,
which is preferred.
2005-01-02 04:23:03 +00:00
christos
ca0484bf3e add a linted comment. 2005-01-02 00:14:46 +00:00
rumble
067cc4d32d Add commented out pf and pflog pseudo-devices. 2005-01-01 21:20:19 +00:00
yamt
da66b14497 bump version in a comment as well. 2005-01-01 21:20:12 +00:00
yamt
61e5e4c16d bump to 2.99.12. uvm and pool changes. 2005-01-01 21:19:03 +00:00
yamt
3983ffcfb1 uvm_unmap_remove: debug check to ensure that
unmapped regions doesn't have any remaining page mappings.
2005-01-01 21:12:59 +00:00
yamt
592c954dc7 don't merge incompatible map entries. eg. private and shared. 2005-01-01 21:11:51 +00:00
yamt
097f0ea734 PR_NOTOUCH:
- use uint8_t instead of uint16_t for freelist index.
- set ph_off only if PR_NOTOUCH.
- comment.
2005-01-01 21:09:56 +00:00
yamt
a880e5e2b5 in the case of !PMAP_MAP_POOLPAGE, gather pool backend allocations to
large chunks for kernel_map and kmem_map to ease kva fragmentation.
2005-01-01 21:08:02 +00:00
yamt
aa64686bba introduce a new flag for pool_init, PR_NOTOUCH.
if it's specified, don't use free items as storage for internal state.
so that we can use pools for non memory backed objects.
inspired from solaris's KMC_NOTOUCH.
2005-01-01 21:04:39 +00:00
yamt
95c82bfee4 introduce vm_map_kernel, a subclass of vm_map, and
move some kernel-only members of vm_map to it.
2005-01-01 21:02:12 +00:00
yamt
1207308b90 for in-kernel maps,
- allocate kva for vm_map_entry from the map itsself and
  remove the static limit, MAX_KMAPENT.
- keep merged entries for later splitting to fix allocate-to-free problem.
  PR/24039.
2005-01-01 21:00:06 +00:00
thorpej
092726cfb1 Make this compile again. 2005-01-01 19:29:59 +00:00
chs
6bd8ed04bb add cases for '040 and '060 FPUs. from Radek Kujawa. 2005-01-01 17:11:39 +00:00
toshii
1701924009 While processing soft interrupts, don't call splx()/lowerspl() when
unnecessary, as they call dosoftints().
2005-01-01 10:39:30 +00:00
simonb
0ce7001382 Provide assembly versions of the clock timing calculation loops that
aren't effected by changes in compiler optimisation.

Fixes PR port-mips/26959 from Izumi Tsutsui
2005-01-01 09:48:39 +00:00
yamt
c4d95d51f4 uvm_fault: pass NULL pap to pmap_extract where we don't need paddr. 2005-01-01 09:14:49 +00:00
yamt
de965c0ed7 pfil4_wrapper: clear M_CANFASTFWD which is not compatible with pf. 2005-01-01 09:13:14 +00:00
simonb
98ffe3f03f Don't specify the object format to pick the right endianness - the
linker already knows if it is big- or little-endian.
2005-01-01 07:00:50 +00:00
tsutsui
91c61919b2 - Make some local functions static.
- Remove unused prototype declarations.
2005-01-01 04:54:29 +00:00
tsutsui
b2a044cc20 Remove (void *) casts added to NULL. 2005-01-01 04:00:25 +00:00
simonb
4dab1db639 Use "NULL" instead of "(something-or-other *)0". 2005-01-01 03:25:46 +00:00
simonb
60e6b50deb Spell "available" correctly. 2005-01-01 03:24:43 +00:00
mycroft
39cdc11f28 Welcome to 2005.
Don't forget to update copyright notices when you add new code.
2005-01-01 00:00:01 +00:00
rumble
bf88067210 Do not report unexpected interrupts when not debugging. These
seem to occur fairly often under normal operation with HPC1.5.
Also, do not return if the interrupt is unexpected, but see if
there is anything to handle regardless, which appears to always
be the case with HPC1.5.
2004-12-31 22:32:34 +00:00
christos
faeb57b2dd Define builtin va start differently for lint, so that it does not produce
a warning.
2004-12-31 17:28:38 +00:00
yamt
96d7068928 remove unused VDIRTY. 2004-12-31 14:54:46 +00:00
bjh21
b1cd280714 Go back to filtering out KBD_IDLE events by default. The Xsun shipped with
NetBSD 2.0 gets confused by them (generating events for keycode 134 when
all keys are released), and even when that's fixed we should keep one release
worth of backward compatibility.
2004-12-31 14:18:35 +00:00
joff
5a55b5cff3 Enable INET6 by default, bump SYMTAB_SPACE 2004-12-31 12:14:22 +00:00
martti
756f26107c Import IPFilter 4.1.3 2004-12-31 11:30:42 +00:00
he
b8908d5fed Make this compile again after the introduction of usb_dma_reserve;
need to include <dev/usb/usb_mem.h> now to pick up it's definition.
2004-12-31 11:06:53 +00:00
rumble
801f527111 Prepend HPC3 macros universally with "HPC3_" to distinctly recognise
the corresponding revision and maintain consistency with HPC1.

No functional change intended.
2004-12-30 23:18:09 +00:00
jonathan
54528c79ad Add rgephy driver to sys/dev/mii/files.mii. Supports integrated PHY
in Realtek 8169S.
2004-12-30 23:03:19 +00:00
joff
05aeaeff39 Always expose struct sigcontext instead of just #ifdef COMPAT_16. 2004-12-30 20:38:37 +00:00
bjh21
11a8c79cbb Make exposure of MAXNAMLEN conditional on _NETBSD_SOURCE rather than on
_POSIX_SOURCE and _XOPEN_SOURCE.
2004-12-30 19:43:25 +00:00
christos
2819137180 change the definition of va_start for lint. 2004-12-30 18:08:20 +00:00
christos
d8e127cb21 - don't try to to lint the va_arg() macros, instead replace them.
- replace the va_start() macro for lint
2004-12-30 16:22:27 +00:00
reinoud
486e5e2819 Fixup of bad patch made by me; the #ifdef ought to be also including ISO
rather than being removed. Also fixed a small comment about the scope of
#if's.

This code is a but ugly IMHO but as long as we dont have to change it ....
2004-12-30 15:38:50 +00:00
bjh21
70c402ea14 Since I've got the datasheets in front of me, add #defines for the missing
registers in the supported MK48Txx chips.
2004-12-30 12:36:29 +00:00
jdolecek
f201f239e3 #ifdef DDB rdyfail label, too 2004-12-30 12:12:16 +00:00
jdolecek
aca74c5304 only do the temporary symbol table load #ifdef DDB and add comment for
the code block, so that the purpose is more clear

avoid NULL pointer dereference in lkmunreserve() called on lkm device
close when ksym_addsymtab() fails for the temporary symbol table
(sanity change only, this can never happen at the moment)
2004-12-30 11:47:02 +00:00
jdolecek
b90395b379 fix two issues regarding handling of ksyms (modload -s):
* only add the symbol table for the current module if the LKM_E_LOAD
  hook returns success; otherwise we overwrite the LKM_E_LOAD error,
  which may ultimately lead to (incorrectly) allowing the module load
* only delete the sumbol table for current module if we actually added
  the symbol table; avoids deleting symbol table of previously loaded
  module when the same module is loaded twice, when the second load
  fails with EEXIST

fixes PR kern/28803 by Jens Kessmeier
2004-12-30 11:35:41 +00:00
is
63672cded0 Hardware pointers must be volatile.
Patch by Pawel Chwalowski via PR 28810, from a similar patch by Michael
Hitch to ite_cl.c.
2004-12-30 10:07:51 +00:00
tsutsui
23bf17808a Protect accesses to PTE/TLB registers with
_cpu_exception_suspend()/_cpu_exception_resume() pair.

Should fix spontaneous reboot problem on heavy load reported by
Christian Groessler on port-dreamcast.
2004-12-30 09:48:30 +00:00
rumble
3de38c1738 Replace the hpc0 base address with the definition from
hpc/hpcregs.h.
2004-12-30 02:41:03 +00:00
rumble
4aa50cac2f Remove a few HPC1 register definitions for ones that don't exist.
Also, HPC1_ENET_INTDELAYVAL isn't a magic number. It turns the
interrupt delay off (by being the timer trigger bit), so name it
more appropriately.
2004-12-30 02:35:41 +00:00
rumble
57329acafa Wrap seeq and hpc register reads and writes in macros for
readability. While here, engage in some KNF and 80-column policing.
No functional changes intended.
2004-12-30 02:26:20 +00:00
bjh21
73c7ba9d59 If clock_ymdhms_to_secs() fails, return ERANGE. This gets my ELC with
a broken NVRAM to boot cleanly.
2004-12-29 21:33:42 +00:00
bjh21
8f7f78f2f0 In clock_ymdhms_to_secs(), rather than returning rubbish when presented with
a year before 1970 or a date beyond the time_t rollover, return -1 so callers
can detect it.  Callers which expect the function not to fail just get a
different kind of rubbish from before.
2004-12-29 20:55:57 +00:00
dyoung
23e8e34093 Remove the cut & pasted copyright and apply my copyright. 2004-12-29 19:43:27 +00:00
dyoung
cef7a909d1 Add my copyright. 2004-12-29 19:41:54 +00:00
dyoung
c3a19d4272 In rtw_detach, flag the rtw as "invalid" (RTW_F_INVALID). Do not
try to power-down the RF section of an invalid rtw.

The radiotap signal quality field is 16, not 8, bits wide.  Convert
the byte order.
2004-12-29 19:41:04 +00:00
jdolecek
015f874310 fix error printf()
change one mask to use hexadecimal number instead of decimal, so it's easier
to verify
2004-12-29 18:14:12 +00:00
reinoud
533a9f0186 Remove conditional around label. Its allways used in the code and thus not
explicitly only for the protocols indicated by the #if

Allthough its unlikely a kernel will be build without NET_INET, it will
fail compilation here when NET_INET is not defined.
2004-12-29 17:57:19 +00:00
imp
ed235136f1 regen for usbdevs 1.392 2004-12-29 08:40:30 +00:00
imp
b5cc71aac7 From FreeBSD:
Add note about where to find official USB VIDs.
2004-12-29 08:38:44 +00:00
rumble
d4734bb3d4 Fix the HPC1 transmit logic, which was previously very broken.
HPC1 does not mark transmitted descriptors like HPC3. We must
query the HPC1 chip to determine what it expects the next
descriptor to be, reclaim used ones, and restart if necessary. Each
revision's corresponding logic now lives in its own
sq_txring_hpc{1,3} function.

HPC1's transmit interrupt conditions also differ from HPC3, so
remove the INTR bits from descriptors when tagging new packets on
to the end of the chain in order to avoid unwanted interrupts.

Also, be extra careful when restarting the transmit ring. Since
transmit interrupts seem to be relatively slow on HPC1, sq_start
may be called while the DMA engine is quiescent, and before a
transmit interrupt is asserted. We cannot behave like HPC3, which
begins transmission from the first packet pulled from IFQ if the
DMA engine is quiescent as this would skip enqueued packets. It
appears that sq_start is never called before HPC3 asserts an
interrupt, which restarts the transmit queue at the appropriate
place. However, this often happens with HPC1 and we cannot assume
that if DMA is inactive in sq_start, then all previously queued
packets have fled the coop.
XXX Is there a similar race possible with HPC3?

HPC3 logic should remain functionally unchanged, and HPC1 should
finally work properly.
2004-12-29 06:57:52 +00:00
joff
5beb7d303e improve intr handling behavior in light of the fact that there is no transmit completion irqs on epcom 2004-12-29 06:31:32 +00:00
rumble
5cf01464f1 HPC1 seems to benefit from larger rings. This should be especially
true on the transmit side, which appears to be significantly slower at
interrupting than HPC3.

XXX I used to be able to occasionally wedge the chip with
SQ_NTXDESC == 32, but have not yet been able to reproduce that
behaviour this evening with a larger value.
2004-12-29 06:28:14 +00:00
joff
193578fd49 Bump UPAGES back down to 8KB now that real issue was found with ep93xx intr handling 2004-12-29 04:47:44 +00:00
joff
54fe88f7fd Fix the potential recursion processing soft interrupts that was eating
all the stack.
2004-12-29 04:46:13 +00:00
rumble
e837411407 Remove the static sq_trace array and make it per-device as
multiple seeq interfaces may exist. While here, add a few trace
actions, move the related macros into sqvar.h, and enhance the
sq_trace_dump output a bit.
2004-12-29 02:11:31 +00:00
dyoung
c75b3dae43 Remove some dead code. 2004-12-29 01:13:07 +00:00
dyoung
9bd9e3df21 Remove unused rtw_softc variables and some other dead code. 2004-12-29 01:11:24 +00:00
dyoung
c3b84ef737 I like the tlp/atw-style names for software descriptors, txsoft,
better than txctl.  Change from rtw_txctl/rtw_rxctl to
rtw_txsoft/rtw_rxsoft.  Change the descriptor blocks' names to
match: rtw_txctl_blk becomes rtw_txsoft_blk.  Change the member-name
prefixes for both software and hardware descriptors.
2004-12-29 01:06:52 +00:00
dyoung
d07caa7269 Consolidate variables related to the rx ring in sc_rxdesc_blk,
which is a struct rtw_rxdesc_blk.

Put a copy of the DMA tag and the DMA map into the rx- and tx-ring
blocks so that I don't have to pass them to subroutines all of the
time.
2004-12-29 00:21:37 +00:00
nathanw
96f80cede0 USB_DETACH(): Don't zero out sc->sc_pipe[i] after aborting the
pipe. This lets umass_disco() free the pipes and associated controller
state, rather than leaking 2-3 pipes per attach/detach cycle.
2004-12-28 23:35:21 +00:00
dyoung
f1fa0e7819 Add bpf(4) packet taps to rtw(4). Now you can tap DLT_EN10MB
(Ethernet II), DLT_IEEE802_11 (802.11), and DLT_IEEE802_11_RADIO
(radiotap + 802.11).
2004-12-28 22:30:07 +00:00
dyoung
88f91a4188 If defined(RTW_DEBUG), provide a sysctl (hw.rtw.rxbufs_limit) for
limiting the number of rx buffers an rtw may allocate.  Use this
sysctl to test the code that copes with buffer exhaustion.

Allocate at most RTW_RXQLEN rx buffers, stopping at the sysctl
limit.  Record in sc_nrxdesc how many were allocated, and put the
end-of-ring indication on sc_rxdesc[sc_nrxdesc - 1].  In rtw_init,
if no rx buffers could be allocated, log a complaint, clear
IFF_RUNNING, and exit with an error.

Many changes to accomodate a short rx ring, mainly of the "add a
rx-ring length argument" variety.  XXX I really should consolidate
all of the rx ring variables in one struct and pass that to the
rx-ring subroutines.

Bug fix: after calling MCLGET, use the (m->m_flags & M_EXT) idiom
to check for success, instead of m != NULL.

Bug fix: at the top of rtw_start, if IFF_RUNNING is not set, or
IFF_OACTIVE is, get out.
2004-12-28 22:21:15 +00:00
dyoung
05372fb8f4 Group receiver-related variables together: move sc_rxctl nearer to
sc_rxnext.

Add sc_nrxdesc, the number of receive descriptors that we are
actually able to use.  sc_nrxdesc will ordinarily equal RTW_RXQLEN.
If buffers are exhausted, sc_nrxdesc < RTW_RXQLEN.  My next commit
will change dev/ic/rtw.c to deal with buffer exhaustion.
2004-12-28 22:07:04 +00:00
christos
ef8015e649 - cleanup some debugging stuff.
- don't create the sysctl nodes if we don't have a synaptics pad.
2004-12-28 20:47:18 +00:00
joff
3a8922c4d8 descend into TS7200_flash_0x60660000 2004-12-28 16:19:41 +00:00
jmc
a6be320e8b Make sure all objects strip out the .eh_frame section and force libsa/etc to
also do this for their objects. Otherwise this creates bootblocks that
are too large w. binutils 2.15
2004-12-28 07:50:00 +00:00
jdolecek
477f876cd6 size_t police
pointed out by Jesse Off on source-changes@
2004-12-28 01:12:26 +00:00
thorpej
65e20d49a9 Use uint32_t casts, rather than Elf_Byte, in ELF_ST_BIND() and ELF_ST_TYPE()
so we don't get screwed by promotion rules (and makes nlist_elf32.ln build
again).
2004-12-28 00:07:31 +00:00
christos
fc969eb142 According to the ELF docs, ELF{32,64}_ST_{BIND,TYPE,INFO,VISIBILITY} are
parts of the public interface. Define them in terms of ELF_ST_*.
Add STN_UNDEF which is part of the public interface also.
2004-12-27 21:35:03 +00:00
dyoung
075143dca9 Use a table to convert the hardware's bit rates (0, 1, 2, 3) to
net80211 bit rates (2, 4, 11, 22).

Count input errors (if_ierrors++) for "DMA error/FIFO overflow"
and unknown bit rate.
2004-12-27 20:04:45 +00:00
dyoung
0da2ab9a37 Simplify the reset we do on a transmit timeout. Really, this could
be as simple as rtw_stop(, 0), rtw_init().
2004-12-27 19:49:16 +00:00
jdolecek
52c7db3883 change wget_utf8() to not require NUL-terminated string as input,
and adjust callers appropriately. cn_nameptr isn't NUL-terminated
for non-leaf components, so it's incorrect to assume it is always
NUL-terminated.

This fixes previous utf8-ization changes to not panic for cases
like 'echo */*/*.ps' in case the intermediate path components
are not in cache (yet).
2004-12-27 18:47:16 +00:00
jdolecek
2ce9f4516f change wget_utf8() to not require NUL-terminated string as input (added
'size' parameter), and adjust callers appropriately
2004-12-27 18:14:36 +00:00
reinoud
4501e21ecb Update generated files from pcidevs (ENE update) 2004-12-27 17:21:46 +00:00
reinoud
a76863e103 Addition of description for :
/* ENE Technology products */
product ENE MCR510      0x510   MCR510 PCI Memory Card Reader Controller
2004-12-27 17:20:32 +00:00
tsutsui
b3090f536d Fix typo in comment. 2004-12-27 14:20:43 +00:00
dyoung
45d5300ab2 Cosmetic: remove some dead code. Join some lines. 2004-12-27 10:47:57 +00:00
mycroft
3b17804fc6 Use the last descriptor to count collisions and failed transmissions, too. 2004-12-27 10:17:38 +00:00
mycroft
cbcc1cc53f When checking if a split packet is completed, check the *last* segment, not
the first.  Otherwise we can overwrite parts of the TX ring that we shouldn't.

Kluge the basic rate setting for now.

Minor simplification to the dequeueing logic.
2004-12-27 09:40:18 +00:00
dyoung
07e67ea7d6 802.11 Control/multicast/broadcast packets are not acknowledged.
Set a shorter 802.11 Duration field, accordingly.

XXX We expect CTS/ACK at 1 Mb/s for 1 & 2 Mb/s stations; and CTS/ACK
at 2 Mb/s for 5.5 & 11 Mb/s stations.  We need to check with the
802.11 standard.  Rate negotiation may need to be overhauld for
standards compliance, too.
2004-12-27 09:25:05 +00:00
mycroft
8de0a60775 Fix the BRSR macros. 2004-12-27 08:59:16 +00:00
imp
8cc2724dbf sync to usbdevs 1.391 2004-12-27 07:05:32 +00:00
imp
76d1141e8d Very minor cleanup:
o Sort vendor PALM entry numerically
o For all vendors, separate the number from the name by a tab, not two
  spaces (this affects 5 entries).
2004-12-27 07:04:26 +00:00
dyoung
5ca7c3d3af Disconnect the "stop transmitter/receiver" function from the
"power-off NIC" function, by adding a 'disable' argument to ath_stop.
Pass disable=0 to ath_stop() at the top of ath_init, so that we
don't power-off the Cardbus slot before resetting the HAL.  Thanks
to Greg Troxel for his analysis of this bug.
2004-12-27 07:01:00 +00:00
dyoung
e336b06e3b Remove useless debug sysctls.
For AP scanning, change the channel dwell time from 1 second to
1/5 second.
2004-12-27 06:12:28 +00:00
mycroft
1989546a4c GC unused stuff. 2004-12-27 05:36:08 +00:00
mycroft
e3c9106a08 Simplify the duration calculations somewhat.
* Add an intermediate variable, ctsrate, which is currently derived directly
 from rate, but may be handled differently later (especially for 11g).
* Assume ACKs are sent at the same rate as the original data packet, as ath
  does, shortening the ACK reservation time substantially.
* Add a note that we need to deal with not adding the ACK time for some
  packets, though this is not implemented yet.

Questions:
* How do we affect the control rate used to send RTS/CTS packets?
* Is the PLCP header length actually controlled by the preamble length
  selection, or should this be based on the transmit rate?

Of course short preamble is not actually implemented/working yet.
2004-12-27 05:35:33 +00:00
joff
60b9b5a6ef do things the todr(9) way 2004-12-27 02:46:22 +00:00
joff
3f09dcaa18 Add tsrtc to TS-7200 config 2004-12-27 02:44:38 +00:00
joff
bb0dbb71f1 Clean up autoconf stuff 2004-12-27 02:42:49 +00:00
joff
cff4f0088d Add support for TS-5620 daughter card RTC 2004-12-27 02:41:54 +00:00
mycroft
9fc969bfcb Update a comment. 2004-12-27 01:57:58 +00:00
mycroft
06e4fe7f62 Replace d_plcp_svc with d_residue. The latter is the number of whole
empty/unused octets to fill out the data time slot.  The value is constrained
by math to 0 for <= 5.5Mb, 0-1 for 11Mb, and 0-2 for 22Mb.  It is used to
signal to the MAC that there is residue.
2004-12-27 01:51:49 +00:00
mycroft
c6d0afc871 Remove ELFn_ST_{BIND,TYPE,INFO}(), and instead add a generic ELF_ST_*() that
works with an Elf_Byte.  Also add ELF_ST_VISIBILITY() and STV_* types.
2004-12-26 23:37:29 +00:00
dyoung
fd1b54b080 Make rtw(4) build w/o RTW_DEBUG. Thanks to Charles Hannum for
pointing out my oversight.
2004-12-26 22:59:41 +00:00
mycroft
1083cfb1dd Fix a compile error if no RTW_DEBUG. 2004-12-26 22:37:57 +00:00
joff
0ac1f404ba support watchdog timer on TS-7200 CPLD 2004-12-26 22:02:10 +00:00
dbj
0c5a27af69 remove opt_compat_netbsd.h, afaict it is no longer needed.
i think it was previously used to pull in COMPAT_09 for ffs_statfs
2004-12-26 17:34:39 +00:00
imp
ee755844ef Sync to usbdevs 1.389 2004-12-26 07:39:50 +00:00
imp
71d471a43a Sort HAGIWARA entry (0x0693) numerically 2004-12-26 07:39:24 +00:00
kanaoka
9c2bc06a94 - Use ether_ioctl().
- Remove unnecessary re_init() in re_attach().
 - Remove notyet compile option.
2004-12-26 07:27:41 +00:00
imp
10065c5c65 Sync to usbdevs 1.388 2004-12-26 07:05:32 +00:00
imp
d30682d183 Sort LOGITEC (0x0789) entry numerically. 2004-12-26 07:03:29 +00:00
kanaoka
38f5c9155e - Sync if_re.c(rev=1.6).
When adding/deleting multicast addresses, only whack the address
    filter if the interface is marked RUNNING.

    Fixes kern/27678.
2004-12-26 06:48:13 +00:00
jonathan
92e2e6b4b0 Add a forgotten change to rtl81x9var.hfor split re(4) driver
(sys/dev/ic/rtl8169.c): add `sc_rev' to generic 81x9 struct rtk_softc.
2004-12-25 17:24:01 +00:00
dyoung
1b319bfabc The rx descriptor ring bug happens quite often, so printf'ing
occurrences is annoying.  Only printf about it when rtw_debug
contains RTW_DEBUG_BUG.
2004-12-25 07:45:53 +00:00
dyoung
763f8db1c3 IMPORTANT: set m->m_pkthdr.rcvif on rx'd packets. Illegal memory
references abound without this fix.

In rtw_intr_rx, skip to the next rx packet earlier if the rx packet
length is too short.

Also in rtw_intr_rx, if a packet is rx'd with unknown rate, printf
a warning, drop the packet, recycle the rx buffer, skip to next rx
packet.
2004-12-25 07:24:17 +00:00
dyoung
d2b4873c41 Change rtw_debug from a debug level to a debug mask. Add a lot of
debug flags.

From Linux: handle an RTL8180 bug.  Sometimes the NIC skips from
the middle of the ring to the 0th rx descriptor.  Now the driver
resynchronizes.

Handle a receive descriptor underrun or Rx FIFO overflow condition
in the way that the Linux driver does.  This kind of seems like
overkill, but whatever.

Protect rtw_ioctl with splnet().

Do not load a tx descriptor with a buffer shorter than 4 bytes.

Handle a transmit timeout less disruptively.
2004-12-25 06:58:37 +00:00
yamt
3954031773 enable debug code in pmap_emulate_reference. ok'ed by Jason Thorpe. 2004-12-25 06:35:30 +00:00
christos
81e1a623a6 PR/28774: Kentaro A. Kurahone: Add synaptics touchpad driver 2004-12-24 18:33:06 +00:00
christos
2c2559cb73 PR/28773: Takahiro Kambe: Support for newer cpu's in enhanced speedstep 2004-12-24 17:37:43 +00:00
joff
b6d96c3c3d Pad .sdata section to a 4-byte boundary so that the .image section
is always aligned.  This makes md_root_loadaddr always 4 byte aligned.
Without this, may get an un-aligned access trap before we even print
anything on the console which was a pain in the neck to debug since so
early in the bootstrap the CPU usually just halts on exceptions.
2004-12-24 16:17:27 +00:00
shige
d2306c8cf3 Add functions:
- com_opb_cnattach
	- com_opb_device_register
2004-12-24 14:55:50 +00:00
joff
881290e4de add netbsd-wd0, netbsd-sd0, netbsd-epe0 configurations 2004-12-24 10:53:34 +00:00
joff
eadf291885 On-chip EP93xx UART support 2004-12-24 10:34:27 +00:00
joff
a1ed993cf1 generic TS-7200 gzboot support 2004-12-24 10:33:54 +00:00
joff
04fb7eeb00 support for gzimg's in TS-7200 Redboot on-board flash 2004-12-24 10:32:40 +00:00
dbj
b2c6a6a4ea also define bioops if FFS is not defined. 2004-12-23 20:11:28 +00:00
dyoung
b24dd60cd6 Round up the number of h/w Rx descriptors to the number of h/w,
not s/w, descriptors in 256 bytes (the descriptor ring alignment).
2004-12-23 08:27:38 +00:00
jonathan
9d44c4d9b1 Snapshot of incomplete-but-working split of re(4) driver into a
bus-independent backend, with PCI and CardBus attachment code.
The committed code has two serious bugs:

1. The driver makes no attempt to recover resources when a (Cardbus)
instance is removed; bus resources are leaked.

2. In testing with a NetGear GA-511, the Cardbus card never responded
   to a reset/wakeup if the card is powered down after attachment.
   So for now, leave cardbus instances powered up at attachment
   (insertion, or at boot if a card is already present).

That aside, it acutally works on my GA-511. Committed as-is despite
the bugs, after repeated requests to make the code available for
further testing.  Also requires sys/dev/mii/miidevs rev 1.54 -> 1.55,
and consequent regen of miidevs{,_data}.h.
2004-12-23 06:26:30 +00:00
jonathan
6f71266c1d Regen from miidevs rev 1.55, with codes for Realtek RTK8169S builtin PHY. 2004-12-23 06:18:49 +00:00
jonathan
7e6ef09234 Add PHY models for integrated 1000baseT PHYs in Realtek 8169S chips,
in two flavours: one with non-IEEE OUI code from FreeSD if_re(4) mii
driver for early 8169S, and a second IEEE-compliant version as
observed on Netgear GA-511 with newer 8196S stepping.
2004-12-23 06:13:24 +00:00
dyoung
4ebbc2c98c Oops, straggler from last commit: set the 802.11 Duration field
with the result from ieee80211_compute_duration.
2004-12-23 06:12:43 +00:00
dyoung
24ba04b962 Fix a bug in ieee80211_compute_duration: the 802.11 Duration field
in an 802.11 unicast data packet is equal to the duration of the
SIFS and Acknowledgement.  That is, the amount of time reserved
*after* the packet has finished transmitting.

Change the arguments to ieee80211_compute_duration: pass the entire
packet length, not just the payload length.  Add a 'debug' argument
to ieee80211_compute_duration and its helper subroutine,
ieee80211_compute_duration1.

If debug != 0, ieee80211_compute_duration printfs its arguments
and several local variables.

In rtw(4), load the 802.11 Duration field with the result from
ieee80211_compute_duration.
2004-12-23 06:08:52 +00:00
dyoung
ce08175fd3 Bug fix: in rtw_rxbuf_alloc, unload the previous mbuf chain before
loading the new chain.
2004-12-23 06:03:09 +00:00
dyoung
baea907e93 DMA-synchronize the Rx buffers before re-initializing them.
XXX not necessary?
2004-12-23 06:00:35 +00:00
dyoung
619095ce92 Add more comprehensive debug messages as we setup transmit descriptors.
Also, dump packets if IFF_DEBUG|IFF_LINK2.  Factor out a subroutine
for printing transmit-descriptor debug messages.
2004-12-23 05:57:18 +00:00
dyoung
0aac8a9404 Disable interrupts and stop transmit DMA before disabling the
transmitter and receiver.
2004-12-23 05:54:54 +00:00
dyoung
ff88b7967a Shorten variables, s/txctl/ctl/. This is rtw_start, after all:
transmission is implied.
2004-12-23 05:52:27 +00:00
dyoung
8c17dbe77f Do not indicate to the NIC that the host has appended the CRC32 to
Tx frames.
2004-12-23 05:50:24 +00:00
dyoung
c1cf79a56a When we set up the supported rates table, mark 1Mb/s, 2Mb/s as
basic rates.
2004-12-23 05:47:42 +00:00
dyoung
387106eafc Extract the transmission status from a tx descriptor, and convert
to host byte-order, once.
2004-12-23 05:44:39 +00:00
dyoung
8828aae46c #define the difference in microseconds between a fast and a slow
preamble and PLCP header.
2004-12-23 05:25:41 +00:00
joff
23fe936a38 bump default U-area size from 8KB to 64KB, 8KB is too little to even successfully boot a tsarm SBC 2004-12-23 04:39:41 +00:00
joff
e8d2af9dd0 Need these files present for ISA support 2004-12-23 04:36:18 +00:00
joff
419237bbb9 generic kernel configuration for TS-7200 SBC's 2004-12-23 04:35:01 +00:00
joff
cf4725f858 build configuration metadata for TS-7200 SBC 2004-12-23 04:34:03 +00:00
joff
01f7ff5bd1 PC/104 aka ISA bus support on TS-7200 2004-12-23 04:31:47 +00:00
joff
e95044fa10 CompactFlash IDE controller glue 2004-12-23 04:30:50 +00:00
joff
37b0a6b3f3 TS-7200 onboard CPLD driver 2004-12-23 04:30:19 +00:00
joff
5494e0fbe9 TS-7200 magic numbers/structs 2004-12-23 04:29:38 +00:00
joff
9817c7eefb TS-7200 machdep initialization 2004-12-23 04:28:31 +00:00
joff
16a20082fa TS-7200 SBC epcom UART glue 2004-12-23 04:27:56 +00:00
dbj
8962229d27 check for _KERNEL_OPT around opt include 2004-12-22 23:29:51 +00:00
joff
330c69ca0e Make sure to ack the interrupt even if we are ignoring it. Otherwise, we will
keep coming back.
2004-12-22 19:36:13 +00:00
joff
781176b751 char major 107 to ep93xx processor UART driver epcom 2004-12-22 19:23:18 +00:00
joff
ece4d58532 support high vectors on ARM9 2004-12-22 19:18:13 +00:00
joff
0fac6fa89b ep93xx ARM system-on-chip support 2004-12-22 19:14:11 +00:00
joff
c1caa5af5e ep93xx processor system tick timer and microtime()/delay() impl 2004-12-22 19:13:32 +00:00
joff
2980391051 ep93xx ARM system-on-chip support 2004-12-22 19:12:21 +00:00
joff
81551c0b8b ep93xx processor on-chip USB OHCI driver glue 2004-12-22 19:11:49 +00:00
joff
4eeab77519 ep93xx processor on-chip 1/10/100 ethernet MAC driver 2004-12-22 19:11:10 +00:00
joff
4e771f5ddb ep93xx processor on-chip UART driver 2004-12-22 19:10:25 +00:00
joff
e98c2a1dac ep93xx processor system tick timer and microtime()/delay() impl 2004-12-22 19:09:29 +00:00
joff
9241ff0062 ep93xx processor bus_space impl 2004-12-22 19:08:16 +00:00
joff
91e542a4f5 ep93xx processor VIC interrupt controller support 2004-12-22 19:07:14 +00:00
christos
5fd3b99d04 check that signum is valid correctly. 2004-12-22 18:16:47 +00:00
itojun
b97cc48910 whitespace 2004-12-22 05:11:24 +00:00
reinoud
cca3038b40 Add convenience macro AC97_HAS_SPDIF to check if SPDIF output is supported
in the codec in the line of AC97_IS_4CH and AC97_IS_FIXED_RATE macro's.
2004-12-22 00:54:55 +00:00
fvdl
735ac78567 Use 256k, not 256M (I thought I had fixed that, since it was discussed
a while ago, but apparently I did forget it). Thanks to Juan for reminding
me.
2004-12-21 19:49:56 +00:00
fvdl
a3cea30b50 Implement an USB memory reserve. Allocate some memory per host controller
in the wanted bus_dma space. If an allocation fails during operation
(i.e. when hotplugging an umass device), fall back to using the reserve.

The amount can be configured as USB_MEM_RESERVE. The default value is
256k.

Ideally, there would be a way to steal pages in the desired area from
UVM, but that's far more complicated, and this is not intrusive, plus
it works.
2004-12-21 16:41:24 +00:00
fvdl
cdbba9f326 defparam USB_MEM_RESERVE 2004-12-21 16:36:53 +00:00
peter
dd544baa78 Apply a patch from OPENBSD_3_6 branch (ok yamt).
MFC:
Fix by dhartmei@

IPv6 packets can contain headers (like options) before the TCP/UDP/ICMP6
header. pf finds the first TCP/UDP/ICMP6 header to filter by traversing
the header chain. In the case where headers are skipped, the protocol
checksum verification used the wrong length (included the skipped headers),
leading to incorrectly mismatching checksums. Such IPv6 packets with
headers were silently dropped. Reported by Bernhard Schmidt.

ok deraadt@ dhartmei@ mcbride@
2004-12-21 12:06:37 +00:00
peter
e71187380f Apply a patch from OPENBSD_3_6 branch (ok yamt).
MFC:
Fix by mcbride@

Initialise init_addr in pf_map_addr() in the PF_POOL_ROUNDROBIN,
prevents a possible endless loop in pf_get_sport() with 'static-port'

Reported by adm at celeritystorm dot com in FreeBSD PR74930, debugging
by dhartmei@

ok mcbride@ dhartmei@ deraadt@ henning@
2004-12-21 12:05:34 +00:00
drochner
e5653b8213 remove a redundant check for ifindex2ifnet[idx] != 0 2004-12-21 11:40:12 +00:00
drochner
f44d9a5791 fix ifindex argument checks for IPV6_JOIN_GROUP,
IPV6_LEAVE_GROUP and IPV6_MULTICAST_IF -
0 is always legal
2004-12-21 11:37:47 +00:00
fvdl
a5e7e03043 Use fixed mode, not lopri, for delivering IO interrupts. Suggested by
Peter O'Kane. Fixes interrupt problems on some Xeon systems.
2004-12-21 11:33:04 +00:00
dyoung
e8cbfad366 The CRC bit in the Transmit Configuration Register seems to have
the meaning opposite to what I thought I read in the datasheet.
2004-12-21 09:07:23 +00:00
yamt
21a48a296e pf_check_proto_cksum: use {tcp,udp}_input_checksum so that we can:
- handle loopback checksum omission properly.
- profit from h/w checksum offloading.
2004-12-21 05:55:23 +00:00
yamt
ffebedd625 factor out receive side tcp/udp checksum handling code so that they
can be used by eg. packet filters.

reviewed by Christos Zoulas on tech-net@.
(slightly tweaked since then to make tcp and udp similar.)
2004-12-21 05:51:31 +00:00
dyoung
aecae5f227 Realtek sample sources are not consistent about the "Digital PHY"
bit in the SROM.  It seems as if it is set to 1 when the PHY is
*analog*, not *digital*.  Fix my sources.

In rtw_intr_rx, use units of 500kb/s instead of 100kb/s for rate,
to be consistent with net80211's expectations.  Polish up some
debugging ugly messages.  Dump raw 802.11 packets if IFF_DEBUG|IFF_LINK2
and RTW_DEBUG is defined.

Polish power-state (on/sleep/off) handling.  Especially improve
support for RFMD (totally untested) and Maxim.  For Philips, take
the Digital PHY property into account.

Call the net80211 watchdog function from rtw_watchdog, so that we
scan again if auth/assoc fails.

Be a little more cautious about writing register[RTW_TPPOLL], since
other drivers are....  Don't frob the high/low-priority queues
right now, since I don't use them.

Add rtw_join_bss which programs the card with the BSSID and other
properties of a BSS.  Use it on state transitions.  Factor out
rtw_set_nettype.

Make rtw_recv_beacon call ieee80211_recv_mgmt instead of dropping
beacons on the floor!  TBD IBSS merges.

Change some rtw_debug=2 printfs to rtw_debug=3 (RTW_DPRINTF3)
printfs so the console doesn't get spammed so badly at rtw_debug=2.
Change some debugging printfs to RTW_DPRINTFs.  E.g., print the
"RF programming method" only if debugging is enabled.
2004-12-20 23:05:41 +00:00
dyoung
8fff1555a5 Add SIOCG80211ZSTATS to atomically get/clear 802.11 statistics.
Protect SIOCG80211STATS with splnet()/splx() so that it takes a
"snapshot" of the 802.11 statistics, which is superfluous if
ieee80211_ioctl is always called at splnet()....
2004-12-20 23:03:39 +00:00
dyoung
f7e41a32b4 Don't be so noisy at boot unless debugging is enabled. 2004-12-20 21:05:34 +00:00
dbj
9b0bad335a use #if defined(_KERNEL_OPT) around opt includes
fix arg to pool_init() when _LKM is defined
2004-12-20 03:12:20 +00:00
dyoung
b9ff79c840 Fix bug in last commit: use &sc->sc_regs, regs is not defined. 2004-12-20 01:28:24 +00:00
dyoung
aa6694402c Add some bus barriers. Remark where they are needed, e.g.,
read_eeprom.

Change some printfs to RTW_DPRINTF2s to quiet rtw(4) when debugging
is disabled.
2004-12-20 01:13:45 +00:00
dyoung
263bfa8e84 Get rid of the silly char (*dvname)[IFNAMSIZ] pattern. Replace it
with const char *dvname.  I'm not sure what I was thinking.
2004-12-20 00:28:02 +00:00
dyoung
3c88b36364 Assert that I'm DMA-syncing a non-negative number of transmit
descriptors.

As I free dirty transmit buffers, move them to the free list, not
back to the dirty list!

Add a 5-second transmit timeout.
2004-12-20 00:16:21 +00:00
dyoung
38e3126fe5 Add the transmit section of rtw(4): build up and tear down transmit
descriptor rings, move packets from the transmit queues to the
transmit rings, handle transmission-completed interrupts.  My
Linksys WPC11 ver. 4 with Maxim RF, generates interrupts like it
is successfully transmitting packets.  Clearly there are bugs: my
G4 Powerbook locks up hard.  I will debug tomorrow.
2004-12-19 08:19:25 +00:00
dyoung
31815c9d7a Remove from atw(4) all of the 802.11 duration #defines that I just
moved to sys/net80211/ieee80211.h.
2004-12-19 08:09:23 +00:00
dyoung
81eefc6f1a Define for more bits in the Service field of the 802.11 PLCP Header.
For use by the subroutine ieee80211_compute_duration, add struct
ieee80211_duration, and #define a number of microsecond constants
used for the transmit timing of 802.11 packets.

Add the subroutine ieee80211_compute_duration, which computes for
any packet the appropriate 802.11 Duration field, the PLCP Length
field, as well as the Duration and Length fields for an RTS frame.

atw(4), rtw(4), future drivers, and possibly ath(4) will share
ieee80211_compute_duration.
2004-12-19 08:08:06 +00:00
christos
77e7bdb8aa yamt's changes seem to fix all the checksumming issues. Turn the loopback
checksums back off so we can make sure that everything works.
2004-12-19 06:42:24 +00:00
yamt
ea04ddb694 udp6_input: correct loopback test. 2004-12-18 15:31:26 +00:00
xtraeme
5f19bd62b5 regen 2004-12-18 11:55:02 +00:00
xtraeme
e4e6ec7dae + ATI Technologies Radeon 9600 XT 2004-12-18 11:54:03 +00:00
christos
a21d3f17b5 Add an array of dtype names. 2004-12-18 08:43:08 +00:00
yamt
6e353db6e4 tcp_input: add missing loopback checksum omission code for ipv6. 2004-12-18 07:30:17 +00:00
christos
7c9f4b5736 I don't think that the vgone() in vop_inactive is needed; in fact it might
be the source of my deadlocks.
2004-12-18 05:26:41 +00:00
christos
bc38b3fdb0 Define debug-printing arrays next to their respective enums/bit definitions. 2004-12-18 03:08:48 +00:00
christos
91a90a7c68 - Move string array definitions and bitmap array definitions to the appropriate
header files, so that they don't become out of sync (again).
- Use bitmask_snprintf() instead of hand-rolled code.
- Always check array bounds before dereferencing print arrays.
- Order arguments in the vnode printing functions consistently.
2004-12-18 03:07:40 +00:00
sekiya
d7a784e1a7 Recognize mec as a valid netboot device. Add IP12 to the wdsc comment. 2004-12-18 00:51:30 +00:00
sekiya
523a6664f4 Nuke MIPS64; we'll use MIPS3 to indicate the presence of MIPS3 instructions
and _LP64 to indicate that 64-bit is desired.

Pointed out by simonb@
2004-12-17 22:59:49 +00:00
christos
60fb5c0ece Turn checksumming on loopback back on until we fix the bugs in it.
Connect over tcp on the loopback is broken:

  4729 amq      0.000007 CALL  connect(4,0x804f2a0,0x1c)
  4729 amq      75.007420 RET   connect -1 errno 60 Connection timed out
2004-12-17 22:54:52 +00:00
shige
cef61c32cd X1226 RTC is connected to IBM405GPr On-chip IIC(I2C).
These files were already moved to sys/dev/i2c.
We don't need these files.
2004-12-17 19:41:04 +00:00
shige
eb555844f1 Substitute PPC405_ with PPC_IBM405_. 2004-12-17 16:23:57 +00:00
cube
6717eabf3a ETHFOO_GOING had no chance to actually be useful if sc_flags is set to 0
in ethfoo_dev_close().
2004-12-17 12:17:09 +00:00
briggs
38ffdc4f30 Back out part of previous. OF_open() works fine with /chaos/control, but
is a bit picky about interrupts.
2004-12-17 05:44:12 +00:00
briggs
78776b6678 - Avoid looking for lost interrupts when recalculating interrupt priorities.
- Use atomic_setbits_ulong() for softintr().  Thanks to Tim Kelly for
  reminding me about atomic_*.
2004-12-17 05:42:30 +00:00
yamt
f4221aaaf6 revive spec vop_bwrite as it's needed for block devices.
PR/28684 from Jukka Salmi.
2004-12-17 03:31:20 +00:00