Commit Graph

16589 Commits

Author SHA1 Message Date
jdolecek
fea475b595 add ACPI atppc(4) attachment; probes properly, DMA and actual transfer
not tested yet
2004-01-25 11:46:49 +00:00
jdolecek
ce4629f6f2 say 'port mode = <foo>' in autoconf message, so that it would be more
clear it's port attribute, not driver attribute
2004-01-25 11:43:09 +00:00
jdolecek
a2fc9113b3 print the parallel port capabilities and FIFO attributes always,
not just with ATPPC_DEBUG/ATPPC_VERBOSE
remove the printf("\n") on start of atppc_sc_attach()
2004-01-25 11:41:17 +00:00
jdolecek
907186d1bb reorganize the ISA DMA setup/use code so that it could be shared
with ACPI and PNPBIOS attachments; move it to new atppc_isadma.[ch]
and g/c previous atppc_isa_subr.[ch]

move attppc_isa_softc struct definition to atppc_isa.c, and reorganize
the attachment somewhat for better readability; also g/c detach support code
2004-01-25 11:35:46 +00:00
sekiya
cf0433d2c7 Regen. 2004-01-25 02:43:38 +00:00
sekiya
86f0a26bce Add definition for IO-DATA WCF12 wireless CF card and allow the wi driver to
match it.  Definition originally from FreeBSD by way of Steve Rumble.
2004-01-25 02:42:49 +00:00
bjh21
1f725099f3 According to the OED, the variant spelling "negociate" died out in the
mid-19th century.  Use "negotiate", which is the current spelling, has
always been more common, and is closer to the Latin to boot.
2004-01-25 00:41:02 +00:00
bjh21
1c34707a4c Remove dollar signs from foreign RCSIDs per doc/3RDPARTY.
Add __KERNEL_RCSID() to .c files.
2004-01-25 00:28:01 +00:00
sekiya
2b71c666ca Add display type for SGI Newport. 2004-01-24 09:53:54 +00:00
simonb
2763a4b916 Fix NTP PPSAPI support (enabled with "options PPS_SYNC"):
From PR kern/13702 from Charles Carvalho.  Tested on alpha and
i386 with a Laipac TF10 PPS-capable GPS.  The com.c change was
copied wholesale from Charles' z8530tty.c patch.
2004-01-23 05:01:19 +00:00
oster
b68ecaf95f Always ask for a new RF_StripeLockDesc_t "just in case", and then
give it back if we don't need it.  If we don't allocate it before
we take our lock, LOCKDEBUG (rightfully) complains that we're trying
to grab something from the pool with PR_WAITOK.  This code (and the
PR_WAITOK in particular) really needs to be revisited at some point.
2004-01-23 01:57:08 +00:00
jdolecek
83ee4751e2 Resurrect "dev" variable from atppc_sc_attach() removed in rev 1.4
(#ifdef ATPPC_DEBUG), so that this compiles with the option set

Fixes PR kern/24193 by Paul Shupak
2004-01-22 14:28:57 +00:00
jdolecek
e17503e59e Reset the service bit of ECP register, so that write threshold would
be identified correctly
Problem reported and fix provided in PR kern/24185 by Paul Shupak
2004-01-22 14:22:20 +00:00
jonathan
ca71058195 Add hooks to dynamically change the bge Rx interrupt thresholds. I
found empiricaly that (at least on bcm5700s) the Rx coalesce and bd
counts cannot be updated on-the-fly; attempting to do so (even at
splhigh()) causes weird behaviour.

Instead, add a softc flag to record that the desired softc values for
Rx-interrupt thresholds have changed; check that boolean in the interrupt
routine. If set, apply the new values there and clear the flag.
2004-01-22 02:29:46 +00:00
jonathan
487ab6705e Add some extra register definitions from FreeBSD and Linux:
BGE_MISC_TIMER register definition, and more bit definitions for
HCC-mode. (I would credit individuals, but the attributions are buried
deep in my own tree.)
2004-01-22 02:13:48 +00:00
bjh21
ff75178c6b Remove unused "dev" variable from atppc_sc_attach().
Remove unused include of <dev/isa/isavar.h>, which fails on non-ISA platforms.
2004-01-22 01:21:41 +00:00
bjh21
58859f40c7 Don't use "int" when we mean "size_t". Fixes compile on ARM. 2004-01-22 01:18:54 +00:00
bjh21
92b303af22 Kernel code should include <sys/types.h> or <sys/param.h> first.
(fixes compile on acorn32)
2004-01-22 01:17:03 +00:00
bjh21
f0b419e554 Don't use "int" when we mean "size_t". Fixes compilation on ARM. 2004-01-22 01:16:02 +00:00
bjh21
87484bb5fc Kernel code should include <sys/types.h> or <sys/param.h> first.
(fixes compiling on acorn32)
2004-01-22 01:13:21 +00:00
briggs
e718f8d0be Updated firmware from QLogic via Matt Jacob (from his Jan 14 distribution).
12160 Firmware Version 10.04.41 (10:30 Mar 21, 2003)
2200  Firmware Version  2.02.06 (08:39 Jun 26, 2003)
2300  Firmware Version  3.02.15 (08:26 Jul 21, 2003)
Matt's done some testing with it, and I've also tested on a very basic
setup with a QLA 2310 and a tower of 4 FC drives.
Unfortunately, there doesn't seem to be any change log for the firmware.
2004-01-21 16:59:45 +00:00
abs
637b0ef23e If we are explicitly asked for entropy, provide it. 2004-01-21 00:47:37 +00:00
bjh21
f782033436 Add RCSID comments. 2004-01-21 00:33:37 +00:00
jdolecek
f5f3fd557c fixup code for Elite card attachments, and adjust autoconfig messages
a little
2004-01-20 19:59:59 +00:00
jdolecek
b5b875ef06 cleanup old lpt(4) attachment, and glue ppbus in so that they can coexist:
* lpt device is defined in MI place (dev/ppbus/files.ppbus), dev/ic/lpt.c
  is included there too; dev/ic/lpt.c is not included if ppbus is
  configured or if there is alternative platform lpt (like for pc532)
* g/c MD lpt definitions and custom puc/upc attachments,
  glue moved to conf/files and dev/pci/files.pci respectively; remove
  device lpt definition from dev/isa/files.isa
* add ppbus parport attribute, atppc device attachments, adjust plip and lpt
  glue
2004-01-20 19:58:01 +00:00
jdolecek
0fb67944af make compile - fix print formats 2004-01-20 19:58:00 +00:00
jdolecek
6c14651ea0 cleanup old lpt(4) attachment, and glue ppbus in so that they can coexist:
* lpt device is defined in MI place (dev/ppbus/files.ppbus), dev/ic/lpt.c
  is included there too; dev/ic/lpt.c is not included if ppbus is
  configured or if there is alternative platform lpt (like for pc532)
* g/c MD lpt definitions and custom puc/upc attachments,
  glue moved to conf/files and dev/pci/files.pci respectively; remove
  device lpt definition from dev/isa/files.isa
* add ppbus parport attribute, atppc device attachments, adjust plip and lpt
  glue
2004-01-20 19:58:00 +00:00
jdolecek
9bf083c370 attach this with lpt_ppbus, just to make co-existence with dev/ic/lpt.c
easier
fix a printf() format string
2004-01-20 19:16:13 +00:00
briggs
e1aa8a2dd7 Handle the Halt Update Bit (HT), stored in the Alarm Hour register.
This bit will be set if the clock lost power (and may therefore
not have the correct time).  If this bit is set, the stored time
does not advance.  So, when setting the clock, if that bit is set,
we simply clear it.  It might be nice in some applications to pass
the information up a few layers if the bit is set when we read the
register initially.  For now, though, we ignore it.
2004-01-20 19:12:54 +00:00
jdolecek
ebe00413ad attach this as 'plip', rather than 'lp'
fix label placement warning
2004-01-20 19:11:52 +00:00
jdolecek
fc1297dc93 fix va_arg() warning, and label placement warning
XXX perhaps MS_TYP_CHA should go completely, it's equal to MS_TYP_INT
XXX effectively
2004-01-20 19:01:22 +00:00
jdolecek
e23cd1a78a Import Gary Thorpe's netbsd-ppbus 1.3. This is NetBSD port
of FreeBSD Parallel Port Bus framework. Work in progress.
2004-01-19 23:22:23 +00:00
jdolecek
f06a5b89bf adapt to latest ahc(4) changes, so that this wouldn't panic kernel on boot
problem reported by Hilmar Both on current-users
2004-01-19 23:15:36 +00:00
ragge
ae632d0c76 Err, get correct RCS IDs. As Love said. 2004-01-19 12:33:26 +00:00
ragge
ac39ad68d6 Add "Intel PRO/10GbE LR Server Adapter". Regen. 2004-01-19 11:57:47 +00:00
gson
f3b20f4de0 In alloc_all_endpoints_genuine(), search for the endpoint descriptors
within the configuration descriptor, not the class specific interface
descriptor. The Edirol UM-1SX now successfully attaches and works as
a standard USB MIDI interface when the "advanced driver" switch is set
to "off".
2004-01-19 07:36:35 +00:00
bjh21
ab5cf544af todclock isn't used on acorn32 any more. 2004-01-18 12:38:59 +00:00
bjh21
8ec98f703b Add audiobell. Remove sysbeep on acorn32. 2004-01-18 12:34:53 +00:00
bjh21
820ae6a962 Add a comment explaining how to call audiobell(). 2004-01-17 22:14:18 +00:00
bjh21
9556e4209d Simple code to provide a console bell through a generic audio device, for
systems that don't have a dedicated feeper.  It's up to MD code to enable
this by having the "audiobell" attribute and calling audiobell() at the
appropriate moment.

Code for making noise in the kernel from Richard Earnshaw.  Simple synthesizer
design from the RISC OS Programmer's Reference manual.
2004-01-17 20:55:59 +00:00
jdolecek
52a99e6986 Michael van Elst reports his USB2 disk works stable after latest Chuck's
ehci.c changes, so remove the item from TODO.
2004-01-17 13:15:05 +00:00
onoe
a42258dab0 Do not return EINPROGRESS but 0 in awi_newstate, since the EINPROGRESS
handling was changed in net80211 framework.
This fix wiconfig -D awi0 to work again for DS phys.
XXX FH phys takes 20 seconds to complete scan, so wiconfig timed out.
2004-01-16 14:13:15 +00:00
oster
1a5bc3eb34 Add missing simple_lock_init(). Noted by skrueger-at-europe-dot-com. 2004-01-15 20:27:27 +00:00
onoe
d21d916e1d Correct beacon (src/bssid) for hostap and adhoc mode. 2004-01-15 13:29:05 +00:00
onoe
5ff2748cd5 Fix: panic when rate is specified but chan is left unspecified.
Add FreeBSD glues to share drivers.
2004-01-15 09:39:15 +00:00
onoe
090e150c3f ANSIfy. 2004-01-15 09:33:48 +00:00
oster
7ab3e4e2e3 Add 2 missing RF_LOCK_MUTEX()es. Problem pointed out by
skrueger-at-europe-dot-com.  (It turns out that the mutex used to
serve two different purposes, not just one, and for its current use,
it's actually miss-named.  Will fix that some other time.)
2004-01-14 15:10:55 +00:00
tsutsui
6353b12d1a Fix hardware cksum problem on big endian machines.
Tested on macppc by HATANO Hiromichi.

Note I guess this bug could be fixed only adding one htole32(),
but I'd rather clean up endianness handling:
- Use htole32() only to accesses against DMA descriptors.
- Don't use uint32_t union member  with htole32()/le32toh()
  to access uint8_t/uint16_t descriptors.
- Add le32toh() in some DPRINTF.
  (XXX: strictly speaking, bus_dmamap_sync() is needed for these DPRINTF)
2004-01-14 14:29:48 +00:00
dyoung
8c117e1a38 NetBSD's KASSERT takes just one argument while FreeBSD's takes two,
so I have added IASSERT(cond, complaint) to the compatibility header
file and s/KASSERT/IASSERT/'d.
2004-01-13 23:37:29 +00:00
kent
2adc11f1f3 remove/modify confusing error messsges. 2004-01-13 14:42:50 +00:00
augustss
9fc19b76bb Print the device description in the attach routine like all other drivers do. 2004-01-13 14:07:09 +00:00
hannken
067a3b897d Update the file system snapshot driver:
- Document the kernel thread.
- Rename some functions and variables.
- Return EROFS where appropriate.
- Use shifts instead of 64-bit divide.
- Use a simple_lock to make it MP-safe.
- Add M_CANFAIL to malloc to avoid panic on large cluster size.
- Allow sparse file for backing store and use VOP_BALLOC() to allocate
  space. Default size of backing store is the size of the file system.
2004-01-11 19:05:26 +00:00
cube
03549a0cc1 The limitation for TX/RX DMA of rev. 900B and 635 os the SiS chips also
applies to rev. 0x91 for 96x chipsets.  Needed to fix PR 24043, but more
stressing testing has to be performed before closing it.
2004-01-11 09:07:56 +00:00
hannken
ed68c4e34c Allow vfs_write_suspend() to wait if the file system is already
suspending.

Move vfs_write_suspend() and vfs_write_resume() from kern/vfs_vnops.c
to kern/vfs_subr.c.

Change vnode write gating in ufs/ffs/ffs_softdep.c (from FreeBSD).

When vnodes are throttled in softdep_trackbufs() check for
file system suspension every 10 msecs to avoid a deadlock.
2004-01-10 17:16:38 +00:00
oster
6297e36a60 Since the LOCK and UNLOCK flags are never used, no need in extracting them.
Collapse the related variables down to zero.  That means 'flags' is 0
as well.  Nuke the extraction macros, a bunch of the variables, and replace
'flags' as well.
2004-01-10 17:04:44 +00:00
yamt
7266a95907 store a i/o priority hint in struct buf for buffer queue discipline. 2004-01-10 14:39:50 +00:00
dyoung
55e0f7c6a4 Rounding to the nearest multiple of 2 with roundup(constant, 2) is
easier to read than `constant + 1'.
2004-01-10 07:54:55 +00:00
dyoung
0370da2a5d In atw_rf3000_tune, enable I/O with the modem and RF front-end
"just in time" instead of at the top of the function.
2004-01-10 07:51:16 +00:00
dyoung
348c2d9603 Do not set IEEE80211_F_IBSSON in hostap mode. Treat hostap-mode
when the link condition changes by returning.

Note that hostap mode still does not work in atw, and ADMtek has
told me that the hardware will not support it, but I remain hopeful.
2004-01-10 07:47:02 +00:00
dyoung
005d4641ca Report received-early interrupt with a debug printf.
Print the Serial EEPROM and the MAC address it contains when
atw_debug > 0, because atw_debug > 1 is a little too strict.
2004-01-10 07:41:18 +00:00
dyoung
f38df7cae7 Misc. cosmetic changes.
Add a debug printf to the input path.
2004-01-10 07:03:28 +00:00
dyoung
a94687e30c Use new docs provided by RFMD to give some meaning to
previously-undocumented registers and magic numbers on the RF3000
baseband.
2004-01-10 06:30:35 +00:00
dyoung
bd26cc12f9 Get rid of empty #if 0/#endif stanza. 2004-01-10 06:02:32 +00:00
oster
2e19186660 iCleanup the RF_CREATE_PARAM3(). Middle two "arguments" were nothing
but 0 in all cases.
2004-01-10 00:56:27 +00:00
oster
5b7e949cbf More lu_flags disappear into oblivion. 2004-01-10 00:53:08 +00:00
oster
7edb3013bb Nuke lu_flag and code associated with it being non-zero.
The compiler already knew that these chunks of code
could never be reached (since lu_flag was always 0), so it
already ignored them.
No functional changes.
2004-01-09 23:35:59 +00:00
oster
ac6b86acbb [This file should have been committed with the other
rf_enableAtomicRMW changes.]

Cleanup rf_enableAtomicRMW and its use.  According to the comments, we
can't set this to anything other than zero anyway.  Shaves off another
900 bytes.  lu_flag's days are numbered now, as are the middle
parameters of RF_CREATE_PARAM3.
2004-01-09 23:31:37 +00:00
oster
35d7c1ee7e Cleanup rf_enableAtomicRMW and its use. According to the comments, we
can't set this to anything other than zero anyway.  Shaves off another
900 bytes.  lu_flag's days are numbered now, as are the middle
parameters of RF_CREATE_PARAM3.
2004-01-09 23:26:17 +00:00
chs
3c9eb7a6c4 in ehci_softintr() when looping over the active xfers, save the next pointer
before calling ehci_check_intr(), since that will free the xfer structure
if the xfer is complete.
2004-01-09 09:19:33 +00:00
thorpej
778161fb7f Initialize some importantant members of the drive info structure. (I have
no idea how this worked for me before, but I swear that it did...)

kern/24015.
2004-01-07 22:06:57 +00:00
thorpej
cb9ba8776e Add a comment about some code that should be cleaned up. 2004-01-07 22:03:56 +00:00
bjh21
a33e671568 Regen. 2004-01-07 22:02:23 +00:00
bjh21
38cb9d0fe2 It looks like the isc PC netslot version of the Nexus interface uses the
same podule ID as the A3020/A4000 netslot version.  Update list to reflect
this.
2004-01-07 22:00:51 +00:00
jdolecek
6c869ee3b7 add list of known issues, from Lennart Augustsson and Michael van Elst 2004-01-07 09:17:47 +00:00
matt
82c993fb44 Regen. 2004-01-06 19:44:38 +00:00
matt
5e5b78644d Add HP Tachyon TL and TS device IDs. 2004-01-06 19:44:17 +00:00
tsutsui
47c4c87d2c Fix bus error trap on X68030/25MHz on-board SPC, which may have some quirk.
Problem reported by Yasushi Oshima.
2004-01-06 18:07:17 +00:00
gson
e11055d090 Abort the USB transfer on an endpoint when the last midi device
referencing it is closed.  Fixes kern/23987.
2004-01-06 05:42:47 +00:00
oster
d9ff8342a0 Clean up a few comments, and improve code formatting somewhat.
Makes things a bit more readable.

No functional changes.
2004-01-06 03:27:13 +00:00
matt
724f5b2c53 Regen. 2004-01-05 19:31:08 +00:00
matt
f89c0bcfa9 Add Agilent Technologies vendor ID
Add Agilent Tachyon_DX2 product ID
Add HP Tachyon_XL2 product ID
2004-01-05 19:30:51 +00:00
augustss
2be4a9297b One more device. From OpenBSD. 2004-01-05 13:49:40 +00:00
augustss
35b09dafaa Regen. 2004-01-05 13:46:43 +00:00
augustss
150753278e Add a number of devices. From OpenBSD. 2004-01-05 13:46:20 +00:00
augustss
8bcf98def6 Add an HP adapter. From FreeBSD. 2004-01-05 13:36:24 +00:00
augustss
7cdc2658bb Try harder to get initial descriptor. Do a port reset now and then
in the retry loop.
2004-01-05 13:32:23 +00:00
augustss
4d6e985752 Fix bug in error path. From OpenBSD. 2004-01-05 13:30:45 +00:00
augustss
5f31dab3df Add more scanners. 2004-01-05 13:29:49 +00:00
augustss
cfbab17b08 Add another device. 2004-01-05 13:29:27 +00:00
augustss
9622982931 Get rid of a vnode.h include. 2004-01-05 13:29:08 +00:00
augustss
770f7ef656 Get rid of some vnode.h includes. 2004-01-05 13:28:18 +00:00
augustss
60846c1584 Regen. 2004-01-05 13:05:39 +00:00
augustss
e3d816149f Add lots of devices. From FreeBSD. 2004-01-05 13:05:16 +00:00
schmonz
113854bb28 Add Compaq "iPaq" HNE-200 USB Ethernet adapter. 2004-01-05 01:52:03 +00:00
schmonz
b7319ca85e Regen (Compaq "iPaq" HNE-200 USB Ethernet adapter). 2004-01-05 01:51:34 +00:00
schmonz
f3d2103991 Add Compaq "iPaq" HNE-200 USB Ethernet adapter. 2004-01-05 01:50:00 +00:00
oster
181f2eebee remove terminate_disk_queues from RF_Raid_s. The hist_diskreq[]
stuff is only used for the CHAINDECLUSTERING, so hide it with an #if.
2004-01-05 01:19:07 +00:00
gendalia
710460b874 Apply http://bugme.osdl.org/attachment.cgi?id=1777&action=view from
http://bugme.osdl.org/show_bug.cgi?id=1766

makes acpi work on my Dell Latitude D600, and should fix PR i386/23868.

Approved by gimpy, thanks to soren for finding it.
2004-01-04 22:03:34 +00:00
oster
290ef1fca7 raidPtr->reconControl->percentCompleted only gets used in one
debugging printf, and in rf_netbsdkintf.c.  We can do the calculations
inside of RF_DEBUG_RECON for the one debugging printf, and only
perform the percentCompleted calculation "on demand" in the
rf_netbsdkintf.c case.  Shaves a few more bytes off an i386 GENERIC
kernel, and ever-so-slightly decreases the amount of work performed
during a reconstruct.
2004-01-04 21:06:04 +00:00
wiz
a5bf3b3c4c Spell controller with two ls. Inspired by miod@openbsd. 2004-01-04 16:19:43 +00:00