augustss
8e7f7d2d69
Keep free block statistics.
2000-03-27 08:27:03 +00:00
augustss
9e5b3b729c
Remove some debug nonsense.
2000-03-27 08:01:09 +00:00
augustss
9ffe849791
Make it compile without DIAGNOSTIC.
2000-03-27 07:39:48 +00:00
enami
8d29747e3b
When we fall into allmulti case due to too may multicast address,
...
properly set the type and length in struct wi_ltv_mcast.
2000-03-27 07:04:21 +00:00
enami
19e7b1b8ae
No need to call wi_setmulti() if ether_{add,del}multi returns 0.
2000-03-27 06:48:05 +00:00
oster
d0c76be757
cleanup function prototypes.
2000-03-27 03:25:17 +00:00
oster
b97e06092d
Shuffle some prototypes to a more appropriate location.
2000-03-27 03:01:33 +00:00
oster
2ee63332b3
Add bits for eventual support of deleteing components and moving
...
hot-spares into the main set.
2000-03-26 22:38:28 +00:00
augustss
a52e96b1eb
Fix typo. Found by Aaron Campbell <aaron@cs.dal.ca>.
2000-03-26 21:42:54 +00:00
kleink
230876cf26
Merge parts of chs-ubc2 into the trunk:
...
* Remove the casts to vaddr_t from the round_page() and trunc_page() macros to
make them type-generic, which is necessary i.e. to operate on file offsets
without truncating them.
* In due course, cast pointer arguments to these macros to an appropriate
integral type (paddr_t, vaddr_t).
Originally done by Chuck Silvers, updated by myself.
2000-03-26 20:42:21 +00:00
kleink
8abfe24915
Cast timeval members to types we know the printf conversions of.
2000-03-26 20:24:12 +00:00
augustss
a9643a2075
Regen & adjust name.
2000-03-26 15:08:43 +00:00
augustss
59310c8294
Adjust the name of the Kawasaki Ethernet adapter.
2000-03-26 15:08:02 +00:00
ragge
30819cb81c
Bus_dma'ify the KDB50 driver, and make it work.
2000-03-26 11:45:04 +00:00
ragge
fc55ca0933
Allow 16 fragments for MSCP DMA.
2000-03-26 11:37:55 +00:00
soren
7b737d77b3
For Cobalt Networks 21143's, always use store-and-forward and toggle
...
a GPIO line to fully reset the PHY.
2000-03-26 10:53:39 +00:00
itojun
240cf24ebd
regen (sorry forgot to do separate commit for them)
2000-03-26 10:31:19 +00:00
itojun
74846d31f5
add CIS for Corega Wireless LAN PCC-11 (no driver support yet)
2000-03-26 10:24:51 +00:00
itojun
130ac9eafe
don't call if_deactivate with NULL ifp.
...
sc->sc_ifp can be NULL if awi_pcmcia_attach() fails, so you will see panic
if you remove a card which fails on attach.
2000-03-26 10:09:33 +00:00
augustss
5b99967f1d
Avoid a pointless debug message.
2000-03-26 10:01:32 +00:00
bouyer
ff2eb3a510
Remove unneeded assignement to nblks
2000-03-25 21:37:51 +00:00
fvdl
aa0f78b2f6
We can use openings = 16 here; this won't even exhaust the number of
...
allocated SCBs for 16 targets, and it's a noticeable difference.
2000-03-25 21:09:08 +00:00
mycroft
528bd4a794
Move esp declaration to conf/files.
2000-03-25 19:58:04 +00:00
fvdl
97688d9a83
Do simple tagged queueing, enabled by default.
2000-03-25 19:52:12 +00:00
augustss
5018b862c1
Remove one, add one.
2000-03-25 18:12:20 +00:00
augustss
3fded57690
Rename and move around callout handles to make it more sane.
...
Add some DIAGNOSTIC.
Fix buglet in isoc abort on UHCI.
2000-03-25 18:02:32 +00:00
augustss
b7eeb17414
Change the test for cold boot slightly to avoid a long busy wait with UHCI.
2000-03-25 17:59:34 +00:00
augustss
34bd644399
The Wacom CT0405U delivers strings, but they are wrong. Don't use them.
2000-03-25 17:30:00 +00:00
oster
d9da26f998
Nuke a function prototype that shouldn't be here.
2000-03-25 16:24:57 +00:00
tsutsui
9100212ef0
Add a "sc_rev" member to ncr5380_softc and handle CXD1180 quirk
...
in MI ncr5380sbc.
2000-03-25 15:27:54 +00:00
ad
b84aceb90d
The bus_space stuff handles byte order conversions for us.
2000-03-25 13:38:35 +00:00
augustss
9893633d57
Improve uhci_dump_ii().
2000-03-25 07:23:12 +00:00
augustss
df370f0e48
More DIAGNOSTIC.
...
Initialize a callout handle I forgot.
2000-03-25 07:13:05 +00:00
augustss
cefdf1aee3
Add more DIAGNOSTIC when aborting isoc.
2000-03-25 00:11:21 +00:00
augustss
6aeaa39b1b
GC an unsued field and add some DIAGNOSTIC in xfer.
2000-03-25 00:10:19 +00:00
augustss
df8025fec8
Two major changes:
...
Make each xfer have its own intr_info. This is necessary if we want
to queue multiple xfers on an endpoint. This should get rid of the
(mostly harmless) DIAGNOSTICs about intr_infos (not) being done.
Change (again!) how xfers are aborted. Aborting a TD is a nightmare
on the braindead UHCI controller. (Unless you stop the HC, thereby
losing isoc traffic.) Hopefully I got it right this time.
2000-03-24 22:57:58 +00:00
augustss
67113875f3
Rearrange to indicate what should be done before 1.5
2000-03-24 22:17:56 +00:00
augustss
81c03592ef
Rename bulk only protocol (following FreeBSD).
2000-03-24 22:16:42 +00:00
augustss
c06b1c683d
Remove unused macros.
2000-03-24 22:13:23 +00:00
augustss
0069eba19b
Some cleanup and renaming of the callouts used in USB drivers.
2000-03-24 22:03:28 +00:00
ws
b7570cae85
Update several ports to at least work again without IPKDB
...
after the update of that.
Sorry for breaking this with my last changes :-(.
Fixes PR#9671 by Lennart Augustsson.
2000-03-24 17:05:30 +00:00
ad
cefe92ae42
Remove paraniod debug check that was mistakenly committed.
2000-03-24 14:33:09 +00:00
augustss
a01d316027
General code cleanup.
2000-03-24 13:08:28 +00:00
augustss
1c6f9cbdf4
Fix a comment.
2000-03-24 13:03:21 +00:00
augustss
2e85384321
Some more debug when selecting sample rate.
2000-03-24 13:02:00 +00:00
hannken
43e3ea96f3
Fix typos from last commit (callout).
2000-03-24 11:46:46 +00:00
mycroft
d07e505604
Rather than guessing at the location of the PMCSR, use the pointer returned by
...
pci_get_capability(). (This is, after all, a standardized interface...)
2000-03-23 22:23:03 +00:00
thorpej
6a6358ed5c
Shake out some bugs from the callout changes.
2000-03-23 18:59:10 +00:00
thorpej
75f3a36686
Remove bogus callout_init(), pointed out by soren@netbsd.org.
2000-03-23 17:51:51 +00:00
joda
8ff53e0069
regen
2000-03-23 15:11:26 +00:00
joda
f68049679a
add two Intel 82810E devices (from IWAMOTO Toshihiro)
2000-03-23 15:10:56 +00:00
soren
2c88f0bb92
s/32-bits/32-bit/ (Hi Al!)
2000-03-23 15:04:49 +00:00
onoe
6654f3bc85
While am79c930 controller allows unaligned access, bus_space_read/write
...
must be aligned. So awi_read/write_2/4 issues multiple bsr1/bsw1 when
unaligned.
2000-03-23 13:57:58 +00:00
ad
5cc8601c8f
Identify individual models correctly.
2000-03-23 11:33:35 +00:00
ad
90ae76da4b
Regen.
2000-03-23 11:18:09 +00:00
ad
96ec85342f
Back out rev 1.197.
2000-03-23 11:17:32 +00:00
enami
dce7fa489c
Fix a typo in comment in previous commit.
2000-03-23 08:20:06 +00:00
thorpej
fc96443d15
New callout mechanism with two major improvements over the old
...
timeout()/untimeout() API:
- Clients supply callout handle storage, thus eliminating problems of
resource allocation.
- Insertion and removal of callouts is constant time, important as
this facility is used quite a lot in the kernel.
The old timeout()/untimeout() API has been removed from the kernel.
2000-03-23 07:01:25 +00:00
onoe
3ae525eaa3
Sorry I forgot to commit this file..
2000-03-23 06:04:24 +00:00
mycroft
dcd265af9c
GC unused variable.
2000-03-23 05:26:00 +00:00
mycroft
e695f87102
Remove AWICTL stuff that is obsoleted by SIOC[SG]IFMEDIA and SIOC[SG]80211NWID.
...
Also, disable AWICTL completely until awictl.h appears.
2000-03-23 05:19:44 +00:00
mycroft
bcb26b717f
Add the Nokia C020 WLAN card.
2000-03-22 22:33:47 +00:00
mycroft
b6a2605ef2
Regen.
2000-03-22 21:41:48 +00:00
mycroft
86151f6ec3
Add the Nokia C020 WLAN card.
...
(`Guess who Charles works for...')
2000-03-22 21:39:57 +00:00
ws
7da71e5f9e
Make IPKDB working again.
...
Add support for i386 debugging and pci-based ne2000 boards.
2000-03-22 20:58:25 +00:00
ws
1b83998bd7
Add bus_space_barrier.
...
Add DELAY in some busy loops to allow the dma engine to actually do something
(neccessary on fast processors).
2000-03-22 18:02:59 +00:00
pk
4174ad4b3d
Make kbd_iopen/kbd_iclose internal routines; introduce kbd_cc_{open,close}
...
for opening and closing the device when attached to /dev/console.
2000-03-22 16:08:51 +00:00
kleink
c8b75dd368
Scale the drain timeout for allowing auto-initialize DMA to complete.
2000-03-22 14:37:43 +00:00
onoe
5644a7e248
Update awi driver, which now supports AMD 79c930 based 802.11 DS cards
...
as well as 802.11 FH cards. Also, it can operate in infrastructure mode,
adhoc mode, and wi(4) (aka WaveLAN/IEEE) compatible adhoc mode.
2000-03-22 11:22:20 +00:00
haya
ddd36bd41a
1. Do not apply 5 V on a CardBus card.
...
2. Do not avoid ISA hole when a device requires more than
256-byte io space.
3. Remove sending CardBus bridge's function number to
cardbus stack. This number is not needed for anyone.
2000-03-22 09:35:06 +00:00
mycroft
b58a073f39
There's no need to frob cfg4/cfg5 in _attach(), since _reset() does it.
2000-03-22 03:27:56 +00:00
oster
e44151e8d6
Fix up some autoconfigure messages. In particular, don't try printing
...
the value of an uninitialized variable. Noted by Luke Mewburn.
2000-03-22 01:41:41 +00:00
thorpej
ed332d840a
In tlp_cardbus_detach(), only unmap the bus space if we were able to
...
map it in the first place. Pointed out by enami@netbsd.org .
2000-03-22 01:35:14 +00:00
cgd
00f7a2d476
if the PCI_CONFIG_DUMP option is defined, set the patchable
...
pci_config_dump variable to 1. otherwise, it gets set to 0. If
that's set, when configuring PCI devices spew the very verbose
configuration space header dump that was previously "#if 0"'d.
If you use this option, or patch the variable to 1, it's strongly
encouraged that you have used the MSGBUFSIZE option to enlarge the
kernel message buffer.
2000-03-22 00:47:26 +00:00
cgd
9c93a8b8ff
add PCI_CONFIG_DUMP as a defopted option
2000-03-22 00:43:47 +00:00
cgd
7990787b1b
opt_pciverbose.h -> opt_pci.h (it's gonna be used by more things, soon)
2000-03-22 00:36:29 +00:00
thorpej
8de21980d9
Fix logic bug in fxp_cardbus_match().
2000-03-22 00:17:46 +00:00
ad
e32aed3c4e
Pass xfer size to disk_unbusy().
2000-03-21 19:47:59 +00:00
joda
1e0edbf862
regen
2000-03-21 18:51:43 +00:00
joda
1173b4b28d
add two VIA VT8371 devices
2000-03-21 18:51:08 +00:00
garbled
6125f7a094
Fix this again. This time only for prep, and not all of powerpc, which
...
broke macppc.
2000-03-21 18:05:55 +00:00
ad
95a8d1bfcd
Try to use memory mapped I/O on everything but the SMART-2/E.
2000-03-21 13:45:16 +00:00
garbled
53e9e9a6dd
Back this out and rethink..
2000-03-21 04:23:22 +00:00
garbled
f77540b159
Allow kernels to compile again for prep. Patch supplied by nonaka.
2000-03-21 03:55:23 +00:00
oster
7f288b4e0d
Just return "100% done" when asked about reconstruction progress on
...
a RAID0 set.
2000-03-20 22:59:26 +00:00
enami
68e028fe82
Cancel requested command if controller isn't active.
2000-03-20 22:57:00 +00:00
enami
83446dedc1
- Test the generic device active flag instead of home grown one.
...
- Test also it in wdcintr.
2000-03-20 22:53:36 +00:00
ad
424f6471cb
- Remove dead code.
...
- Make synchronous writes optional, disabled by default (*way* too slow).
- Handle case where dm_nsegs > CAC_SG_SIZE.
- Fix a couple of silly bugs.
- Fix use of __attribute__((__packed__));
2000-03-20 18:48:34 +00:00
tron
282dcaac92
Regen.
2000-03-20 18:39:52 +00:00
tron
a28ca8f97e
Add support for RPTI-EP400 PCMCIA network adapter. Patches supplied by
...
Tim Walls in PR kern/9644.
2000-03-20 18:39:32 +00:00
ad
d02615fe27
Install cac{reg,var}.h.
2000-03-20 18:07:59 +00:00
jdolecek
bd134c34ac
only define struct vnd_softc if _KERNEL is defined
2000-03-20 13:17:47 +00:00
pk
7327fb6f23
Split off tty initialization in rcons_init() into a separate routine
...
and get rid of `fbconstty'.
2000-03-20 11:24:46 +00:00
pk
4f91a51915
Move `nca' declaration to `conf/files'.
2000-03-20 11:03:42 +00:00
thorpej
92d27d3c2e
Get rid of the powerhook when we detach.
2000-03-20 07:52:58 +00:00
mycroft
634d0c9744
Oops; fix a slight biff in the PIO input routine.
2000-03-20 06:01:11 +00:00
tsutsui
979d79d931
Use sc_cfg4 for the Am53c974.
2000-03-20 05:48:28 +00:00
tsutsui
553896782a
Cosmetics. ( 0x80 -> NCRSTAT_INT )
2000-03-20 03:49:22 +00:00
augustss
0ef19aad57
Regen.
2000-03-20 01:31:29 +00:00
augustss
06bb856348
Some new devices. From FreeBSD.
2000-03-20 01:31:10 +00:00
mycroft
df8c3f5ceb
Interrupts work now. Woohoo.
2000-03-20 00:53:17 +00:00
mycroft
8b484a0264
NCR_SCSIREGS() and NCR_PIOREGS() are bogus. GC them.
2000-03-20 00:50:20 +00:00
mycroft
41cd6b4fc9
Reset CFG4 and CFG5 correctly in the reset routine.
2000-03-20 00:49:42 +00:00
augustss
ebd6f5f498
Add another item.
2000-03-20 00:42:21 +00:00
augustss
9a34877094
Clean up code a little.
2000-03-20 00:41:55 +00:00
augustss
eb6e78ce98
Make sure all packets (except the last) have the maximum packet size even
...
when using multiple TDs.
2000-03-20 00:37:00 +00:00
augustss
89de970942
Switch method for determing if we are cold booting. The driver now works
...
with OHCI adapters.
2000-03-20 00:27:11 +00:00
augustss
94afb61b8b
Remove some items!
2000-03-19 22:28:02 +00:00
augustss
9762d78a52
Make control transfer of over 8K possible by using a chain of TDs.
2000-03-19 22:24:57 +00:00
augustss
c6eb2d324c
Add ioctl USB_SET_REPORT for uhid. This will allow manipulating the
...
feature items.
2000-03-19 22:23:28 +00:00
mycroft
f1ebad18a4
Add esp_pcmcia. For the moment it's polled, since interrupts don't seem to be
...
working.
2000-03-19 21:54:01 +00:00
thorpej
92c19e5ff7
Add suspend/resume hooks to ensure that the chip doesn't scramble memory
...
after an APM suspend and is unsnoozed after an APM resume.
2000-03-19 21:45:23 +00:00
mycroft
c2150bf8bf
Adapt to ncr53c9x change.
2000-03-19 21:27:01 +00:00
mycroft
b8e1812629
For the ESP406/FAS408, add sc_cfg4 and sc_cfg5.
...
Add a detach routine, and do the addref/delref.
2000-03-19 21:25:49 +00:00
soren
2d937cc876
Make it a bit more clear which functions are specific to which models.
...
Split off register definitions into eapreg.h.
Remove duplicate codec reset.
2000-03-19 17:11:50 +00:00
pk
08a1a0f49d
Use a somewhat more flexible method to hook up the keyboard driver
...
as the console input device.
2000-03-19 12:50:43 +00:00
pk
6d04005134
Check for console input and output separately.
...
XXX - split input/output for /dev/console is not yet supported.
2000-03-19 12:42:45 +00:00
pk
3f1373d9b7
Define separate flags for console input and output.
...
Allow console operations to be passed in attachment arguments.
2000-03-19 12:39:47 +00:00
scw
b0ca3fa931
The soft-interrupt handler now returns void.
2000-03-19 10:38:43 +00:00
sjg
281c45ba53
Added NOLUNS quirk for YAMAHA CRW8424S
2000-03-19 10:33:26 +00:00
rh
783a9476be
Track name change espvar.h -> esp_isavar.h so 'make includes' works again.
2000-03-19 09:11:50 +00:00
tsarna
893f3574fb
Make clearer. IMHO, all of this code should stop referring to Control-L
...
and Control-R, since those suggest ^L and ^R, not Left and Right Control.
2000-03-19 06:31:17 +00:00
tsarna
4f2a934e05
Correct a comment
2000-03-19 06:24:52 +00:00
mycroft
744ccf496c
Expose ncr53c9x_init().
2000-03-18 22:18:57 +00:00
mycroft
c0b35f72c2
Adjust ncr53c9x_intr() prototype.
2000-03-18 22:09:32 +00:00
mycroft
48e59fc985
esp -> esp_isa
2000-03-18 21:50:20 +00:00
mycroft
4a915758fd
esp -> esp_isa
2000-03-18 21:49:33 +00:00
mycroft
9dd3a0973d
This turns out to be the wrong interface for what I needed -- but I'll leave
...
the code here for now.
2000-03-18 21:11:16 +00:00
mycroft
03dddfc09e
Preliminary support for 53c40x-based cards. Needs some more work.
2000-03-18 17:59:52 +00:00
mycroft
b1d2b97787
Change footprint of ncr5380_intr() to match normal interrupt handler usage.
2000-03-18 17:14:34 +00:00
mycroft
1d1321109f
Use bus_space on MIPS.
2000-03-18 17:07:46 +00:00
mycroft
28b4015ca2
GC.
2000-03-18 16:52:20 +00:00
mycroft
0af581a1a1
Add a ncr5380_attach() routine which does part of the initialization, attaches
...
the scsibus, and does the addref/delref dance.
2000-03-18 16:13:22 +00:00
mycroft
302a1bd362
Regen.
2000-03-18 15:01:33 +00:00
mycroft
2ab04a0400
Add the Panasonic 4X CD-ROM Interface CArd.
2000-03-18 15:00:31 +00:00
mycroft
7e9aa53f0a
nca -> nca_isa
2000-03-18 13:17:03 +00:00
mycroft
5960b2aec6
Move some code around in preparation for nca_pcmcia.
2000-03-18 13:05:20 +00:00
cgd
638726b0db
* rework the quirk table ('device_tab'):
...
* QUIRK_NOMSG only has any meaning when NCR_GETCC_WITHMSG
is defined. Therefore, there's no harm in using it when
NCR_GETCC_WITHMSG is not defined. so, simplify the table
by removing the #ifdef.
* there's really no point in having table entries after
an entry which will match everything.
* add some comments, clean up spacing.
* add an entry for "QUANTUM"/"ATLAS IV" drives with flags
QUIRK_NOTAGS|QUIRK_NOMSG. (I included the latter flag only
because everything else had it before! ... which means that
all the functionality added with the NCR_GETCC_WITHMSG define
would never get used! *sigh*) The latter fixes the problems
I was having on an Atlas, and should fix the problems mentioned
by Hans Hoppe <hopha@casema.net> in comments on PR#7694.
2000-03-18 06:59:02 +00:00
cgd
52b7212c58
undo the non-script changes from rev 1.87. They caused problems in
...
1.4.x and i have concerns (but no concrete proof) they will cause/have caused
problems in -current as well. Really, the right way to fix this is to
rewrite the driver, and push up tagged queueing handling into a common
middle layer that'll do it right in a low-level-driver-independent manner.
I'll fix my particular issues by using the ncr driver quirk mechanism.
2000-03-18 06:47:28 +00:00
augustss
670d533d54
Keep the bit position even when the report descriptor says POP.
2000-03-17 18:09:17 +00:00
soren
11bd453515
scsiprint() is needed even without scsibus'es, so move it to scsi_base.c .
2000-03-17 11:45:49 +00:00
soren
bd1cc85c63
Use a kvtophys() hack for mips like for alpha. No idea if it actually works..
2000-03-17 11:30:14 +00:00
soren
82ad0bf745
atapiprint() does not exist.
2000-03-17 11:23:23 +00:00
bouyer
5c0cae7a28
Fix botched merge in previous.
2000-03-17 09:25:22 +00:00
bouyer
0bf221f2d9
- remove leftovers of FreeBSD code in #if 0/#endif
...
- fix a bug in ti_encap() where a NULL pointer could be used if we run out
of tx descriptors (return ENOMEM instead, and let the caller assert OACTIVE)
- sync boot messages with NetBSD's pci standart (print ti_name and irq
line)
- add a shutdown hook to stop the board, so that the board will not DMA at
random places while we're rebooting
- convert all but TIGON 1 transmit descriptors to use bus_space
(this last one isn't trivial to get rigth and I don't have the hardware to
test)
- If we can't map the mem space linar, retry to map it nolinear. Punt if
we couldn't map the mem space linear and we found a Tigon 1 chip.
With these changes a Tigon 2 board (netgear BA620 at last) can be used in
my DS20.
2000-03-17 09:20:16 +00:00
thorpej
93eb82ff2f
Recognize the Intel InBusiness.
2000-03-16 23:41:40 +00:00
thorpej
56460ec830
Regen.
2000-03-16 23:41:30 +00:00
thorpej
3f182de5c6
Add product ID for the Intel InBusiness 10/100 Ethernet adapter (which
...
is an i82559 with a different product ID).
2000-03-16 23:36:44 +00:00
augustss
cdc4484e47
Regen.
2000-03-16 21:51:45 +00:00
augustss
94f5fe4392
Add Altec ADA70 speakers and have them recognized despite announcing an
...
old rev of the USB audio spec.
2000-03-16 21:51:23 +00:00