Commit Graph

73496 Commits

Author SHA1 Message Date
matt
2f15be42ae Check to see if the script has an ELF header, and if so, return ENOEXEC. 2004-11-04 23:55:28 +00:00
ragge
d26e77c79f Make match() fail if this is not a DWLPX (i.e a DWLMA).
XXX - DWL* type should be checked in kftxx.c.
This avoids a panic if the device is not a DWLPX.
2004-11-04 19:22:28 +00:00
rjs
77c10163bb Add AEI USB to LAN. 2004-11-03 22:59:31 +00:00
scw
06375beb5f Fix mbr_label_locate() to return '1' on success rather than the '0'
leftover from the call to biowait(9).
2004-11-03 12:21:04 +00:00
yamt
e89aeb518a make recording of clct(4) work. namely,
- cs4281_intr: advance a pointer after copying data.
- cs4281_trigger_input: fix an inverted condition about dma mode.
2004-11-02 00:40:08 +00:00
wiz
9589a2f43c Grammar fix in comment. 2004-11-01 23:20:42 +00:00
mycroft
74c82c0ec4 Some miscellaneous cleanup:
* Encapsulate all the ring-specific variables into a substructure.  (This will
  help with some potential code sharing.)
* Don't bother with "last buffer complete" interrupts -- we should be taking an
  interrupt anyway because we set IOC on every buffer.
* Likewise, ignore CELV; it's meaningless to us.
* Get rid of the FIFO error counters, since this doesn't actually happen any
  more.
2004-11-01 06:25:35 +00:00
he
0e9a54d054 Follow up on the constification of audio_hw_if, to fix build
problem for vs.c.
2004-10-31 22:41:23 +00:00
martin
29e38c8b5e When doing a crashdump, counting already dumped MB per mem_region
is ... slightly confusing. Instead calculate the total size of the dump
beforehand and show the number of MB we still need to dump instead - just
like 386 does it.
2004-10-31 21:59:51 +00:00
mycroft
170f82c2c3 Copyright maintenance. 2004-10-31 20:15:16 +00:00
mycroft
43670bc418 More code reduction.
Also, allow any sample rate between 8000 and 48000Hz.  (This range should
probably be larger, but this is what's known to work.)

Another 180 bytes shaved.
2004-10-31 20:00:42 +00:00
mycroft
62405c408b Shave another 112 bytes by reducing some divisions to shifts. 2004-10-31 19:28:31 +00:00
mycroft
53a18a1af1 Fix a regression -- my previous changes made the kernel slightly larger. 2004-10-31 18:30:52 +00:00
mycroft
f37709ef90 In the trigger routines, start *all* the blocks, not just the first one. This
was causing some "fifo under/overrun" errors during the initial trigger.

Also fixes a ring synchronization problem introduced in the earlier changes.

This should completely fix the FIFO errors with auich.
2004-10-31 16:49:27 +00:00
he
6ef865c900 Include the <sys/bufq.h> header to allow these to compile again. 2004-10-31 12:52:55 +00:00
yamt
6e71418936 use __insn_barrier rather than homegrown equivalents. 2004-10-31 10:39:34 +00:00
mycroft
04699fb576 Reorder some register writes just to be safe. 2004-10-31 06:25:55 +00:00
mycroft
91c9307af1 Attempt to mitigate "fifo underrun" errors in two ways:
1) Update the queue pointers any time we get a block completion interrupt,
   not just when we hit the last block.
2) Set the "back-to-back enable" bit.
In addition:
3) Make sure we ack every block we transfer; there was a bug that could cause
   the audio layer to get out of sync.
2004-10-31 05:50:58 +00:00
darrenr
90032de19d build a new fr_info_t structure in fr_send_ip() and pass it through to
the fastroute function so that it uses accurate packet information about
the packet being sent out rather than the packet received (impacts both
return-rst and return-icmp features.)

PR: kern/27093
2004-10-31 04:52:50 +00:00
thorpej
bebd825b66 iee_ioctl(): Make this look like other drivers, fixing a missing "splx(s)"
as a side-effect.  Don't bother handling IFF_PROMISC here, because
ether_ioctl() already calls (*if_init)() to handle flags changes.

When adding/deleting multicast addresses, only whack the address
filter if the interface is marked RUNNING.

Fixes kern/27678.
2004-10-30 23:52:22 +00:00
thorpej
559857f039 - qtinit(): Don't skip initialization if we're already marked RUNNING.
ether_ioctl() will call (*if_init)() when flags change.  Instead, do
  what other drivers do and stop the interface in this case before
  re-initializing.
- qtioctl(): Now that qtinit() does the right thing, remove the check
  for IFF_PROMISC change.

  When adding/deleting multicast addresses, only whack the address
  filter if the interface is marked RUNNING.

  Fixes kern/27678.
2004-10-30 23:45:10 +00:00
thorpej
711247fa68 When adding/deleting multicast addresses, only whack the address
filter if the interface is marked RUNNING.

Fixes kern/27678.
2004-10-30 23:33:29 +00:00
bouyer
c31b572a47 Allow polled commands to be queued, if ata_exec_xfer() is called in thread
context. For this introduce 3 new xfer tags:
- C_WAIT, equivalent of AT_WAIT
- C_WAITACT, when there is a thread waiting on this xfer to become the active
  one (that is, to be at the head of the queue)
- C_FREE, set by ata_free_xfer() when it can't free the xfer because it's
  still in use. The holder should then free the xfer ASAP.

If ata_exec_xfer() is called with (C_POLL | C_WAIT), and there is already
xfers to be processed, assert C_WAITACT and sleep.
atastart() checks for C_WAITACT, and wakeup the thread waiting for this xfer
to become active if set. atastart() won't process this xfer, it's the
responsability of the thread waked up to handle it.

Fix (the right way) kern/27421 by Martin Husemann.
2004-10-30 23:10:37 +00:00
mbw
7c1ffafac2 Change to fix PR 25689 for Swedish ADB keyboards
-    KC(52),    KS_Mode_switch,KS_Multi_key,
+    KC(58),    KS_Mode_switch,KS_Multi_key,
2004-10-30 20:13:15 +00:00
thorpej
fc44282f79 Use elf32-hppa-netbsd output format. 2004-10-30 18:38:38 +00:00
thorpej
e9818f5b5e When adding/deleting multicast addresses, only whack the address
filter if the interface is marked RUNNING.

Fixes kern/27678.
2004-10-30 18:08:34 +00:00
bouyer
235e7412c1 Revert 1.215, with a comment explaining why we can't use interrupts here. 2004-10-30 17:17:21 +00:00
skrll
59abd634ef We emulate more than SVR4, and IBCS2 on the i386 and Linux on the i386
and the Alpha there days. Remove this statement in a comment.
2004-10-30 09:38:15 +00:00
dsl
e26801d6fb Use unsigned char * variables when scanning buffer - saves casts and & 0xff 2004-10-30 08:22:40 +00:00
dsl
2722aff86f Add (unsigned char) cast to ctype function (for /sbin/setkey) 2004-10-29 19:31:04 +00:00
kent
2027395f9c * uaudio_chan_open()
Call uaudio_set_speed() if and only if the selected Audio Streaming
interface supports multiple sampling rates.
  Address PR#27237
2004-10-29 17:12:53 +00:00
kent
acac7b4b51 replace printf() inside UAUDIO_DEBUG with logprintf() 2004-10-29 16:42:47 +00:00
hannken
3404c7af50 Move the inclusion of <sys/bufq.h> from fss.c to fssvar.h to make
an FSS-enabled kernel compile again.
2004-10-29 15:39:38 +00:00
yamt
18f717bb90 constify audio_hw_if, midi_hw_if, and radio_hw_if. 2004-10-29 12:57:15 +00:00
bouyer
2bdbaab58f Call xfer->c_start() with the channel from the xfer, not the one from the
thread. They may be different if we have a shared queue.
2004-10-28 20:11:41 +00:00
cube
cce3c2a9eb Add support for the BCM575x variants. They're close to the 5705 one, with
some special cases for the PCI-Express versions.  As there is no
documentation available, all of this is inspired from Linux or taken from
FreeBSD (itself inspired from Linux).  There are a lot of magic numbers.

Tested on two BCM5751 devices as found in newer Dell computers.
2004-10-28 07:36:05 +00:00
martti
05e2eaf818 Regen for Dell PERC 4/SC 2004-10-28 07:29:07 +00:00
cube
64b1795875 Add support for the PHY found with BCM575x chips. Beware the magic
numbers!

From FreeBSD.
2004-10-28 07:26:17 +00:00
martti
ac15c84040 Align all SYMBIOS entries 2004-10-28 07:26:09 +00:00
cube
d3f031a415 Regen. 2004-10-28 07:23:24 +00:00
cube
69295b9741 Add an entry for the PHY found with BCM575x chips. 2004-10-28 07:23:00 +00:00
martti
0ae886cb1b Added Dell PERC 4/SC 2004-10-28 07:22:23 +00:00
yamt
05f25dcc2a move buffer queue related stuffs from buf.h to their own header, bufq.h. 2004-10-28 07:07:35 +00:00
yamt
043a545875 hide bufq_state from userland. 2004-10-28 06:59:18 +00:00
itojun
bc559f51c6 remove extra code mistakenly committed 2004-10-27 23:16:56 +00:00
jonathan
2bee2ad85f Fix missing break; Emmanuel Dreyfus.
C.f. sys/netinet6/ipsec.c rev 1.97 -> 1.98, but does not include the
gratutious change for a case which (the comment says) should not occur.
2004-10-27 23:10:13 +00:00
itojun
70fc307de9 missing break; Emmanuel Dreyfus 2004-10-27 22:26:50 +00:00
david
d7d15131bb Bounds check syscall arguments where appropriate 2004-10-27 19:29:57 +00:00
david
a710461910 Log Msg was corrected, Nov 6th, 2004. Whitespace cleanup 2004-10-27 19:29:56 +00:00
david
090b8be8f9 Bounds check syscall arguments where appropriate 2004-10-27 19:29:56 +00:00