ragge
38d5764cd1
Fix for a driver bug provided by Jon W Grubbs (jgrubbs@megsinet.net).
...
This bug is only visible on some disks, and I have verified that it works
correctly on VAX. However, du to the author, it is a problem on other
machines/disks as well. Here's the author's comments:
> The MI code for the NCR5380 has a small bug in it The RZ56 wants to
> negotiate for Synchronous Data Transfers and when it does, the current code
> looks like it will send a REJECT message as the spec calls for when we cant
> handle the request. However, a couple of lines of code in the
> ncr5380_msg_in routine are missing wrt the PARITY message and anything that
> wants to send a REJECT message. The ATN setup that is done in
> ncr_sched_msgout is immediately negated by the final byte ACK sequence in
> this routine. This causes bad things to happen to an RZ56.
2000-05-26 21:11:00 +00:00
tsutsui
e3427d8f2c
Call bus_dmamap_sync() properly before/after reading fcd_stats
...
in fxp_control_data.
2000-05-26 19:11:24 +00:00
thorpej
8a3725612d
Add support for the Davicom DM9102 and DM9102A 10/100 Ethernet chips.
...
Partially based on diffs submitted by Matthew Orgass <darkstar@pgh.net>
and IWAMOTO Toshihiro <iwamoto@sat.t.u-tokyo.ac.jp>.
2000-05-26 16:38:13 +00:00
dante
3d7bdc4c94
Fix a bug introduced in last commit which caused a painc due to
...
re-enqueueing an already free ccb.
Prepare the background to have a unique initialization function for
all of the supported host adapters.
Rename a lot of #define in a more sane way.
Move Carriers initialization and defines in adwmcode.{c,h}
Don't lose Carrier nodes in case of a BUS/Chip reset explicitly invoked
after a DMA failure.
XXX - DMA failure still arise when AdvanSys U[2]W host adapters are used
in conjunction with Intel 82443BX Host Bridge/Controller (rev. 0x03).
!?!Have to understand why!?!
2000-05-26 15:13:43 +00:00
haya
de5dacd81d
KNFfied those files.
2000-05-26 06:32:56 +00:00
matt
bf05730540
Regen.
2000-05-26 05:07:02 +00:00
matt
5bd1e75033
Add NEC 1394 OHCI chips
2000-05-26 05:06:27 +00:00
tsutsui
5dca757b0e
Swap the order of u_int16_t member in Tx/Rx descriptors
...
on big endian machines.
"Big endian mode" of smc83c170 actually works!
(i.e. no htole??()/le??toh() functions are needed.)
2000-05-26 00:20:26 +00:00
tsutsui
dea97be7fd
Don't use bcopy() to copy u_int16_t data to u_int8_t array.
2000-05-26 00:14:41 +00:00
thorpej
c9a7ec7a66
Add Davicom DM9102 registers.
2000-05-25 22:50:11 +00:00
thorpej
7c709cc6b4
Comment the fact that the X3201-3 requires FS|LS in the setup
...
packet descriptor.
2000-05-25 22:18:07 +00:00
thorpej
f4a3f5ea48
So, while the DEC chips and other clones want no FS|LS in the
...
setup descriptor, apparently the Xircom X3201-3 requires it.
2000-05-25 18:46:07 +00:00
mycroft
4bfbc7641d
Recognize the DE-650 with another vendor/product pair and OUI.
2000-05-25 17:21:48 +00:00
thorpej
215a635a5b
Truncate receive buffers to 4-byte boundary. Slightly modified
...
from kern/10198, from Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>.
2000-05-25 16:47:18 +00:00
thorpej
2f08658512
Fix a couple of typos in debugging messages. From IWAMOTO Toshihiro,
...
kern/10194.
2000-05-25 16:37:33 +00:00
thorpej
05a766d42e
Don't set FS and LS in the setup packet descriptor. From
...
IWAMOTO Toshihiro <iwamoto@sat.t.u-tokyo.ac.jp>, kern/10194,
and confirmed with the 21040 manual.
2000-05-25 16:36:03 +00:00
fvdl
3e54d43abc
Be sure to not use tagged queueing for a few commands.
2000-05-25 11:41:05 +00:00
bouyer
c9347a04a5
Regen.
2000-05-25 10:16:37 +00:00
bouyer
b063b2ec36
Separate the sheduler from the main script, allocate another DMA-safe
...
memory page for the sheduler. Put the main script in the on-chip RAM when
available.
Avoid a null-pointer dereference when DSA is invalid.
2000-05-25 10:10:54 +00:00
thorpej
4f92d2cd54
Update from Bill Studenmund <wrstuden@zembu.com>:
...
- Note that the FreeBSD driver distributed by Cyclades served as
documentation on how the board works.
- Use the wait-until-pending-I/O-completes-before-loading-parameters
command in czttyparam().
- Pass BREAKs up to the tty later properly.
- Garbage-collect some debugging code.
2000-05-24 22:26:35 +00:00
soren
c25111e4ae
Make two previous changes more correct, as shown by Izumi Tsutsui.
2000-05-24 13:20:32 +00:00
soren
8922795de0
The EEPROM is little-endian.
2000-05-24 08:04:23 +00:00
soren
66083288eb
Fix DMA status reading on big-endian systems. From Sanjay Lal on port-macppc.
2000-05-24 07:49:13 +00:00
soren
35bf53bd9c
And a newline after error string.
2000-05-24 06:04:12 +00:00
itojun
37cc37ead2
correct pcmcom detach (like card removal). PR 9334.
2000-05-24 03:44:46 +00:00
christos
d4bcd03b81
PR/10154: Antti Kantee: ignore 0 length resource(s)
2000-05-23 17:50:53 +00:00
bouyer
2904666f56
Allocate dynamically the command block descriptors.
2000-05-23 17:08:07 +00:00
thorpej
8f7304f9b7
Typo in previous.
2000-05-23 16:47:44 +00:00
bouyer
e662e86225
sd_interpret_sense() can be called from interrupt context; call scsipi_start()
...
with XS_CTL_ASYNC if the failed command was called with XS_CTL_ASYNC.
Add a SDF_RESTART flag to keep state, cleared in sddone().
A mounted disk can now spin down, it will propely spin up at the next access.
2000-05-23 10:20:14 +00:00
bouyer
373582e298
scsipi_get_xs(): if we have XS_CTL_URGENT, return an xfer even if
...
active >= openings. An XS_CTL_URGENT command could otherwise fail, especially
if openings == 1.
2000-05-23 10:16:43 +00:00
enami
28ec465498
Remove $Id.
2000-05-23 08:41:49 +00:00
enami
f87f33d513
Allow userland to retrieve whether the card support WEP while the
...
card power is off. This allows wiconfig to set WEP key etc while power off.
2000-05-23 08:25:51 +00:00
soren
9f00930ace
Make AHC_DEBUG compile.
2000-05-23 03:50:12 +00:00
mycroft
b7c3dc6d20
Recognize more models of the IBM card. From PR 10137.
2000-05-23 02:55:19 +00:00
thorpej
5c9920bbb6
Update from Bill Studenmund <wrstuden@zembu.com>:
...
Correctly send and receive BREAKs -- still needs to do something
intelligent with them. Some additional debugging goo.
2000-05-23 01:02:21 +00:00
thorpej
b8322d5c23
Const poison the layout name.
2000-05-23 00:44:38 +00:00
fvdl
c9fe89891a
Don't try to re-enable tags once they have been disabled because of a
...
MSG_REJECT from the target. Obey the NOTAG quirk.
2000-05-22 21:14:24 +00:00
thorpej
f5d4219e96
Remove an used variable and add a missing `}' so that this compiles.
2000-05-22 16:52:03 +00:00
wiz
c2b6147132
Replaced overlooked BROOKTREE_SYSTEM_DEFAULT with BKTR_SYSTEM_DEFAULT,
...
as noted by Roger Hardiman.
2000-05-22 01:00:29 +00:00
wiz
56cb02c358
Use bktr_softc.bktr_dev.dv_xname instead of "bktr0" when printf'ing as
...
requested by Klaus Klein in kern/10166.
Also add device instance name to all printf's that didn't have it.
2000-05-21 15:43:56 +00:00
tsutsui
a6d8e45ba7
Call bus_dmamap_unload() if any Tx mbuf remains in rtk_stop().
2000-05-21 13:00:46 +00:00
matt
20a98cb524
count input and output packets.
2000-05-20 18:33:18 +00:00
thorpej
649ff32f2b
Rather than using a magic constant, use `com_scratch' as the offset
...
in UART space to the interrupt CSR.
2000-05-20 18:25:41 +00:00
augustss
c3e3a945cc
Add a missing bktr%d: in one of the attach messages.
...
(When is this code going to be KNFed?)
2000-05-20 16:16:15 +00:00
ragge
9f7a44710e
Remove (more) VAX dependencies.
2000-05-20 13:41:33 +00:00
castor
9816b43753
regen
2000-05-20 06:30:13 +00:00
castor
773f9bb009
Add Geocast's vendor ID
2000-05-20 06:29:50 +00:00
thorpej
071aed40ac
A foolish consistency; most parts of the kernel use bp->b_data, so
...
change these from bp->b_un.b_addr to bp->b_data, as well. This also
allows us more flexibility to experiment with other data buffer types
hung off of struct buf.
2000-05-19 18:54:22 +00:00
drochner
415552f3db
add spanish keymap, data from
...
Juan Jose Garcia Ripoll <jjgarcia@ind-cr.uclm.es>
2000-05-19 16:40:04 +00:00
drochner
4a523cfe34
define spanish keymap
2000-05-19 16:39:15 +00:00
jhawk
92f539aa66
Calibrate the timeouts from rev 1.26 by using DELAY(1) so their
...
values are less machine-dependant. Fixes port-i386/10141, where
spurrious timeouts were being seen.
Also note the line numbers of the timeouts so it can be determined
which is being seen (via __LINE__).
2000-05-19 16:00:30 +00:00
tsutsui
f2973e2fb8
- Change RL_* -> RTK_*
...
- Free bus_dma resources if attach fails
- Add detach and power management code
Patch from Masanori Kanaoka <kanaoka@ann.hi-ho.ne.jp> in kern/10156.
2000-05-19 13:42:29 +00:00
kleink
5f56eae96a
Add a quirk table entry for the OnStream ADR50 Drive;
...
from S.P.Zeidler <spz@serpens.swb.de> in kern/10118.
2000-05-19 06:55:42 +00:00
thorpej
3e403cdb65
In tiocm_to_cztty(), use SET() instead of CLR() in the
...
TIOCMBIS case. "Oops!"
2000-05-19 06:01:14 +00:00
eeh
424619ca1a
Fix the sparc64 console.
...
Unlike the other Sun machines, UltraSPARCs can have consoles run on different
chips than zs, so we need to support them. So, here we go:
Add a new PROM console driver with a major number and everything.
This is the default driver if nothing else attaches. It does not
use the keyboard driver since the PROM translates keystrokes itself.
(Unfortunately it also swallows L1-A).
Have the keyboard driver take over the console when it attaches on a
serial port. When a serial port detects a keyboard and attaches the
keyboard driver, it needs to provide a set of consdev vectors. They
keyboard driver will use those to send I/O to the keyboard and mouse.
2000-05-19 05:26:16 +00:00
minoura
c2e8f67477
Add some missing casts of ioctl arg.
...
Obviously autoconfiguration wouldn't work on big-endian machines.
2000-05-19 04:53:25 +00:00
thorpej
f636538446
NULL != 0
2000-05-19 04:34:39 +00:00
thorpej
1cff94b896
Add missing field in static initialization.
2000-05-19 04:03:33 +00:00
thorpej
59164fe0fc
Fix an inverted test.
2000-05-18 17:55:17 +00:00
mrg
badbd98b2a
rearrange the order of bus_dma operations to be more like many other
...
drivers, at the suggestion of fvdl. also, use bus_dmamap_load() not
load_raw().
2000-05-18 14:00:46 +00:00
drochner
6095f60587
regen
2000-05-18 13:04:27 +00:00
drochner
309b0ed70d
fix typo in last commit
2000-05-18 13:03:31 +00:00
mrg
cc57e4111a
do not pass a `boundary' argument to bus_dmamap_create(), particularly one
...
that is smaller than the `size' argument.
2000-05-18 12:49:09 +00:00
garbled
4d3e8e6976
regen
2000-05-18 08:03:22 +00:00
garbled
81fd58c65b
Add the device ID for the IBM MPIC-II.
2000-05-18 08:02:19 +00:00
thorpej
b5cf4e96cf
Use big-endian CRC on ADMtek multicast hash.
2000-05-18 03:02:45 +00:00
thorpej
5274a6162f
Add a device driver for the Cyclades-Z series of intelligent multi-port
...
serial boards. Written by Jason R. Thorpe and Bill Studenmund.
2000-05-17 17:58:09 +00:00
thorpej
07ea678d4d
Register definitions and preliminary API definition for the PLX 9060
...
family of PCI bus controllers.
2000-05-17 17:47:00 +00:00
thorpej
463931b3ba
Nuke dk_establish() from orbit except from those ports which still use
...
it to determine the boot device: mvme68k, pc532, macppc, ofppc. Those
platforms should be changed to use device_register(). In the mean time,
those ports defined __BROKEN_DK_ESTABLISH.
2000-05-16 05:45:44 +00:00
thorpej
47490d3527
Whitespace glitch.
2000-05-16 00:18:44 +00:00
thorpej
e7d81a3225
Fix a tyop, pointed out by Bill Studenmund.
2000-05-15 23:56:49 +00:00
dante
e66be0bd10
Cosmetic change
2000-05-15 16:38:49 +00:00
dante
ceb378e070
Add few peripheral device type
...
Remove "???" from T_IT8_1/2. They actually are pre-press devices for graphic arts as described by ASC IT8
Zeros and blanks scsipi_inquiry_data from byte 58 to byte 74 if additional_length is less than 58
2000-05-15 16:35:49 +00:00
bouyer
c94bdce1f4
Don't enable debug message by default.
2000-05-15 15:16:59 +00:00
bouyer
7e71ffde06
Sync copyrigth notice
2000-05-15 08:48:25 +00:00
bouyer
c4042e45a5
Sync my copyrigth notice.
2000-05-15 08:46:00 +00:00
bouyer
92a5f4d724
Sync my copyrigth notice
2000-05-15 08:32:07 +00:00
bouyer
2b86c61a31
- sync my copyrigth
...
- Add usefull message for obsolete error code (part of fix for kern/9856).
2000-05-15 08:31:33 +00:00
bouyer
e557084177
Update for siop split.
2000-05-15 08:27:24 +00:00
enami
769cc65919
Free memory when failed to map it.
2000-05-15 08:08:12 +00:00
enami
01f1223f94
Cosmetic changes.
2000-05-15 07:57:19 +00:00
bouyer
a1c4db6c37
- split siop_pci in attachements vs helper functions, for comming esiop
...
- add a reset callback to enable PCI-specific features. This improve bandwith
by a factor of 2 on my alpha with a 875 !
- sync copyrigth notice
2000-05-15 07:53:17 +00:00
bouyer
863014523a
- split siop.c in script-dependant vs script-independant part, for
...
comming esiop
- add a reset callback for bus-dependant registers settings
2000-05-15 07:48:24 +00:00
bouyer
95d08cb691
Regen
2000-05-15 07:44:05 +00:00
bouyer
06d4aa45eb
- use my standart copyrigth notice
...
- After reselect, don't clear ack after the IDENTIFY message, this breaks
when the reselecting target has different sync parameters than the previous
one.
2000-05-15 07:43:45 +00:00
thorpej
7da80620c9
splimp() -> splnet()
2000-05-15 01:55:53 +00:00
thorpej
e5ae7c287a
Symbol namespace cleanup: rl_ -> rtk_
2000-05-15 01:55:12 +00:00
thorpej
a4b298224a
Use <dev/ic/ac97reg.h>
2000-05-15 01:35:29 +00:00
thorpej
706ee091ed
Move register definitions into ac97reg.h
2000-05-15 01:32:03 +00:00
thorpej
1838aef29c
ac97.h -> ac97var.h
2000-05-15 01:27:44 +00:00
dante
e852afa89f
Fix a typo
2000-05-14 19:52:34 +00:00
dante
94cd08a535
Handle better the status codes.
...
Add a way to instruct the upper layer to don't bother w/ new requests if/when a device queue is full/busy or the device is unavailabale at that time
Use scsipi_inquiry_data instead of its own inquiry structure
2000-05-14 18:25:49 +00:00
dante
1937dbee6a
Reflect changes in scsipi_inquiry_data structure: "flags" field is now named "flags3"
2000-05-14 18:22:13 +00:00
dante
f65d97bb57
Change scsipi_inquiry_data strucure to be ANSI SPC-2 rev16 compliant
2000-05-14 18:20:11 +00:00
drochner
ac9d663468
My (Cabletron) card supplies two more statistics counters.
...
Instead of dropping them all, read out min(expected, supplied).
2000-05-14 17:19:18 +00:00
soren
2e9acbbc58
Typo.
2000-05-14 15:19:24 +00:00
soren
22ead9a824
Regen.
2000-05-14 15:18:33 +00:00
soren
a2c48b9c79
Add a few devices.
2000-05-14 15:18:16 +00:00
soren
8513bb93ed
Regen.
2000-05-14 14:58:14 +00:00
soren
b84dfa7c45
Add SGI IOC3.
2000-05-14 14:56:53 +00:00
bjh21
e6f1ac083f
Release dlreg.h into the public domain. It's hardly a great creative
...
work, after all.
2000-05-14 09:46:17 +00:00
jdolecek
ba84aa08e8
one less - the bootblocks were even easier shot than I though :)
2000-05-13 20:18:29 +00:00
he
084953b8f7
Update from Matthew Jacob:
...
Correctly account for F-port vs. F-port (no FLOGI_ACC) topologies.
Make sure we get a port database entry for the fabric name server.
Preserve fabric logins if the device didn't change across fabric
or port database changes, or the device has already logged into
us (e.g., for target/initiator dual role devices like Veritas
SANbox). Propagate class 3 service parameter changes where devices
can change roles.
Fix all occurrences of setting a sendmarker so that setting it
for one bus on dual bus cards doesn't wipe a pending sendmarker
for other busses on the same card :-;.
Comments added and clarifications made in some of the target mode code.
2000-05-13 16:53:03 +00:00
bjh21
9d61165c26
Oops. Swedish is KB_SV.
2000-05-13 14:40:10 +00:00
jdolecek
ba714a7f2c
regenerate from mcadevs, to get proper 'generated from' info
2000-05-13 14:20:40 +00:00
jdolecek
d63e211e90
one more
2000-05-13 14:00:19 +00:00
jdolecek
05a45852e4
superseded by http://www.netbsd.org/Ports/i386/ps2.html
2000-05-13 14:00:02 +00:00
bjh21
83d50760d8
Add keypad-# and Swedish layout
2000-05-13 12:16:35 +00:00
bjh21
5d05bf7a7a
Add Archimedes mouse/kbd/video
2000-05-13 12:13:45 +00:00
jhawk
e0292df01c
sc_ih (interrupt cookie) is not pci-specific data
...
and needs to remain in fxp_softc rather than fxp_pci_softc;
otherwise we break cardbus.
2000-05-12 18:46:33 +00:00
thorpej
cd82969dfc
Print the revision info from the PCI configuration header. From
...
Dave Sainty, kern/10025.
2000-05-12 17:52:07 +00:00
thorpej
c8de5ae180
Treat the 3c980C-TXM like the 3c980 Server Adapter. From Paul J. Lavoie,
...
kern/10037.
2000-05-12 17:48:47 +00:00
thorpej
032c5f01de
Regen.
2000-05-12 17:47:05 +00:00
thorpej
0a712d4707
Add product ID for 3Com 3c980C-TXM 10/100 Ethernet. From Paul J. Lavoie,
...
kern/10037.
2000-05-12 17:46:47 +00:00
thorpej
d6c07323b2
If using ring-mode, don't update the receive descriptor list base address
...
when a receive overrun occurs. From Castor Fu <castor@geocast.com>.
2000-05-12 17:09:27 +00:00
thorpej
f0481f14ab
Oops! We actually want the *lower* 6 bits of the crc32 of the multicast
...
address to generate the multicast filter bit index, not the upper 6.
Should address kern/8268.
2000-05-12 16:57:30 +00:00
thorpej
6e4b4f6954
Use ether_crc32_le().
2000-05-12 16:45:42 +00:00
thorpej
692e54c43d
Use ether_crc32_be().
2000-05-12 16:44:19 +00:00
thorpej
288883fca7
Apply indent(1).
2000-05-12 16:42:41 +00:00
thorpej
6474f16852
Use ether_crc32_le().
2000-05-12 16:41:59 +00:00
tsutsui
0ee6a24aa7
Read upd_pktstatus from DMA buffer after bus_dmamap_sync() called.
2000-05-12 15:22:33 +00:00
bouyer
9b45dfba17
Accept any 'sc' value when probing atapi drives: with some drives, or
...
controllers, or combination of both, the value can be different from the
expected one after a reset.
2000-05-12 15:00:33 +00:00
jhawk
421c001447
Move struct fxp_pci_softc declaration to if_fxp_pci.c removing an
...
unnecessary header file (if_fxp_pcivar.h); oh, how quickly the nascent
inodes are subject to infant mortality.
2000-05-12 13:46:31 +00:00
jhawk
cd552bf956
Fix bugs seen on Sony Vaios.
...
Address kern/9370, kern/9548, kern/9571, and kern/9573.
Save and restore critical PCI configuration registers because they are
sometimes bashed.
Add a powerhook to restore said PCI registers after APM events.
The fxp now works across a warm boot from windows (vaio).
The fxp now works across an apm suspend/resume or hibernate/resume cycle.
2000-05-12 03:37:40 +00:00
jhawk
6622f20fc1
Move pci-specific data to fxp_pci_softc from fxp_pci_softc.
...
Add some more pci-specific data to fxp_pci_softc.
2000-05-12 03:36:18 +00:00
jhawk
e50925114e
Catch some potentially infinite loops in while() loops if the chip happens
...
to "go insane" and never complete some operations (dmasync, etc.).
2000-05-12 03:35:57 +00:00
jhawk
8d671b6292
Define some PCI power management CSR constants.
2000-05-12 03:35:34 +00:00
bjh21
2d09335a35
Fixes from PR 9838:
...
Only access board memory using the front-end functions.
Add hook for clearing latched interrupts.
Corrent debugging printf of ethertype on LE systems.
Make it possible to us I82586_DEBUG as a kernel option.
Tested on arm26 and mvme68k.
2000-05-11 20:55:03 +00:00
is
4d65db2d97
RATOC REX-R280 (another if_mbe_pcmcia card) support by UCHIYAMA Yasushi.
...
Originally part of pr 6789, reworked by the submitter to fit into -current.
2000-05-11 19:24:35 +00:00
jdolecek
2185bcc386
MI part of MicroChannel Architecture bus support
...
This work is based on code written by Scott D. Telford, the IBM
Token Ring card attachment was written by Gregory McGarry.
XXX this is still very experimental and development version; use at your
XXX own risk
2000-05-11 15:42:00 +00:00
bouyer
2222d240a7
Use correct divider value for scxfer
2000-05-11 09:30:12 +00:00
dante
8c999651eb
Change adw_isr_callback() status handler
...
Add a catch for DMA Error which show up on Intel 82443BX Host Bridge/Controller (rev. 0x03). This doesn't fix the problem, but reset the SCSI bus and reinitialize the host adapter
Minor cosmetical changes
Thanks a lot to Greg Oster and Andan Lauber
2000-05-10 21:22:34 +00:00
thorpej
5786c811d5
Support 64-bit PCI memory mapping registers, as sometimes are used
...
on the Symbios 53c896 controller. Also, prefer memory space over
I/O space.
2000-05-10 17:22:46 +00:00
thorpej
90f7e687dc
These are no longer used.
2000-05-10 17:09:44 +00:00
thorpej
d56c0ff801
Support Adaptec U2W cards with a 64-bit PCI memory range (such cards
...
are available with Power Macintosh G3 and G4 systems).
2000-05-10 17:07:52 +00:00
thorpej
5939e70ca3
Add support for mapping 64-bit PCI memory space. If the region
...
is mapped in a way that is inaccessible by a 32-bit bus_addr_t, then
print a message to that effect and return failure.
Original patches by Bill Studenmund, with a few small changes by me.
2000-05-10 16:58:42 +00:00
pk
82dbe14248
No need to specify page alignment; this is automatic.
2000-05-10 14:25:43 +00:00
pk
bb1605cff5
Fix bogus `boundary' argument in bus_dmamap_create().
2000-05-10 14:16:11 +00:00
pk
2e595d79d8
Load DMA buffer before mapping it into kernel space.
2000-05-10 11:15:32 +00:00
kleink
7a6f003756
Add a comment describing the previous change.
2000-05-10 08:39:58 +00:00
haya
014be1da8b
Move if_rl_cardbus.c:1.8 to if_rtk_cardbus.c.
2000-05-10 00:24:14 +00:00
haya
7d4bae615d
Move if_rl_pci.c:1.7 to if_rtk_pci.c.
2000-05-10 00:19:55 +00:00
pk
18a16edec1
Conform bus_dmamem_{alloc,map} usage to bus_dma(9) specs.
2000-05-09 23:16:19 +00:00
pk
1bf775b965
Conform bus_dmamem_{alloc,map} usage to bus_dma(9) specs.
2000-05-09 22:42:08 +00:00
jhawk
e02d0e3597
Back out rev 1.7 of i82365_isa.c; 0x300-0x3ff, or even 0x330-0x3ff
...
is not a reasonable place to allocate 12-bit pcmcia iospace.
It seems to cause conflicts on a large number of modern laptops,
necesitating hand-patching of the kernel (mostly due to
video devices in the upper range of that space).
This will presumably cause problems on the NEC Versa 6030X,
however that appears to be a vastly less common case than
the laptops that are inconvenienced by the current state.
12-bit iospace now uses 0x400-0xfff.
2000-05-09 17:59:39 +00:00
bouyer
05e928a241
Ops, abort if we can't map the registers ! Pointed out by Matthias Drochner.
2000-05-09 17:05:52 +00:00
explorer
6b66bf5d80
set paa_busname to pcmcia, like the i82365.c driver does.
2000-05-08 19:44:34 +00:00
augustss
1a1595070f
Fix the most glaring bug in the old rbus code. This way your machine won't
...
panic with a 3c562, but it won't work either.
2000-05-08 19:27:00 +00:00
augustss
5da7a65ca6
Back out my rbus change since it seems to break things.
2000-05-08 19:25:46 +00:00
thorpej
622e87734a
Quiet some uninitialized variable warnings that do in fact look legitimate.
2000-05-08 18:28:46 +00:00
thorpej
79cbea8cc3
Don't use not-in-user-namespace variable names that newer versions of
...
GCC doesn't like very much.
2000-05-08 18:23:36 +00:00
dante
6644e670f7
Change the way ADW_CARRIER is allocated and handled.
...
Increased ADW_MAX_CCB to 63 and ADW_MAX_CARRIER to 253
Print WDTR/SDTR negotiation result per target
Protect AdvISR() inside splbio()/splx() pair
Add a pending queue to keep track of all the CCBs that are being executed by the host adapter.
Rewrote timeout handler in a more efficient way:
After 3 timeout now the SCSI is resetted and all pending queues not completed are now reenqueued in the waiting queue so to get executed just after the BUS Reset (hoping that resetting the SCSI BUS and reinitializing the adapter could solve the problem).
2000-05-08 17:21:33 +00:00
dante
2648a72bb2
Minor changes to PCI configuration
2000-05-08 17:11:54 +00:00
joda
6d3ce966ce
VIA VT82C686A hardware monitor
2000-05-08 16:40:42 +00:00
itojun
e6469f14ad
move static function getstr() to cons.c, make it publically available
...
as cngetsn(). there will be other consumer.
2000-05-08 16:30:57 +00:00
augustss
20edddd023
KNF the code and fix three bugs:
...
* If a non-zero addr was given to rbus_space_alloc_subregion() it would
claim to have allocated region when in fact it just failed.
* If a non-zero addr was given to rbus_space_alloc_subregion() allocation
often (always?) failed when it shouldn't.
* One part of rbus_space_alloc_subregion() used an alignment that always
made the kernel panic.
I'm not sure if my change is correct, because I don't know what this code
is supposed to do. But now I can use a 3c562 card.
2000-05-08 14:00:05 +00:00
augustss
fd36bc02a6
Swap the order of disabling the function and disestablishing the interrupt
...
on detach. This avoid accessing unmapped registers on multi-function cards.
2000-05-08 13:53:32 +00:00
augustss
621323af72
KNF some comments.
2000-05-08 13:51:36 +00:00
augustss
e169e0018c
Regen.
2000-05-08 13:26:05 +00:00
augustss
43c5780ae1
Allow a verbose description to be printed with the option MIIVERBOSE.
2000-05-08 13:25:34 +00:00
augustss
56aa5c16d1
Add another AMD chip.
2000-05-08 13:23:21 +00:00
kleink
05f0b17555
Make pci_get_capability() work correctly on both header type 0 and type 2
...
devices; both have different Capability List Pointer registers.
2000-05-08 10:52:38 +00:00
kleink
085ec82073
Add a register offset for the Capability List Pointer in header type 2.
...
XXX Ideally the PCI-Cardbus Bridge header should be restructured to just
XXX present standard register definitions, making it ~safe to be included.
2000-05-08 10:45:52 +00:00
kleink
de328af944
Fix a inverted logic botch introduced in rev. 1.35, typically causing
...
cb_chipset() to return the wrong chipset type.
2000-05-08 07:31:20 +00:00
mycroft
f5bd37be57
Make the SPARC audioamd driver at least *compile*. Well, the C code, that is.
...
*sigh*
2000-05-08 02:44:31 +00:00
wiz
8651580247
man page is written, remove it from TODO
2000-05-07 20:47:10 +00:00
jonathan
8ee4c016eb
PCI product codes for Yamaha YMF744B (DS-1S) YMF754 (DS-1E) audio chips.
2000-05-07 17:00:06 +00:00
jonathan
0d57ac396d
Product codes for Yamaha YMF744B (DS-1S) YMF754 (DS-1E) audio chips.
2000-05-07 16:56:34 +00:00
veego
f7e2752025
Change one 0 for bootverbose to 1 if DEBUG is defined.
2000-05-07 14:59:23 +00:00
veego
20ae91400c
Add a dummy bootverbose.
2000-05-07 14:49:11 +00:00
veego
21942247f3
It is a bad idea to declare a static bootverbose variable here. Remove it.
2000-05-07 14:43:31 +00:00
martin
41dc1a6839
Avoid stomping on the W0_CONFIG_CTRL register which seems not to be
...
implemented on EISA cards. This makes a 3Com 3C597 Fast Etherlink TX
work for me at last, fixing PR kern/7067.
2000-05-07 14:03:25 +00:00
martin
4a351b20bc
Minimized io ports reserved by this driver to the ports actually needed.
...
Fixes PR kern/5279 for this driver.
2000-05-07 13:57:16 +00:00
wiz
4211fcfd7e
remove unnecessary output to console
2000-05-07 13:50:10 +00:00
wiz
7392f90215
multiple inclusion protection
2000-05-07 03:01:58 +00:00
wiz
3d3dc5c594
add one
2000-05-07 01:46:01 +00:00
wiz
2f7dba9ea1
compilation fix
2000-05-07 01:16:23 +00:00
wiz
188ac21f3f
add bktr
2000-05-07 00:29:19 +00:00
wiz
006e9528a1
install bt8xx.h for bktr
2000-05-07 00:29:03 +00:00
wiz
4caea4817d
some glue for bktr-driver
2000-05-07 00:25:58 +00:00
wiz
5f8b869a3e
Some NetBSD specific changes; also TODO, and import script, based
...
on bind2netbsd by Bernd Ernesti
2000-05-07 00:24:33 +00:00
wiz
c2f780fbfd
Import of (finally busspaced) bktr-driver from FreeBSD (part 2).
...
This version is from the location specified in the README, modified
by bktr2netbsd, to be committed later.
2000-05-07 00:17:13 +00:00
wiz
8b27ce1a70
Import of (finally busspaced) bktr-driver from FreeBSD (part 1).
...
This version is from the location specified in the README, modified
by bktr2netbsd, to be committed later.
2000-05-07 00:16:17 +00:00
augustss
26f708a5a3
Handle the Linksys USB100H1 like the other Linksys adapters.
...
Restructure the code a little.
2000-05-06 20:38:59 +00:00
augustss
fd58a6ae12
Regen.
2000-05-06 18:28:36 +00:00
augustss
13d8353ffc
Add Linksys USB100H1, an Ethernet and HomePNA adapter.
2000-05-06 18:28:01 +00:00
augustss
82cfd6b42a
Simplify an expression.
2000-05-06 14:35:28 +00:00
augustss
4c46b93c8d
Add bba.
2000-05-06 14:34:31 +00:00
soren
5e209d22f7
Print the usual interrupt line.
2000-05-06 00:46:19 +00:00
soren
6a1547768c
Typos.
2000-05-06 00:44:00 +00:00
matt
2b44ae84ee
LP64 printf fix. (I wish size_t was unsigned long on all platforms).
2000-05-05 17:52:38 +00:00
bouyer
904ca34539
Ops, restore sync/wide parameters after a reselect.
...
Also, better handling of parity errors.
2000-05-05 09:32:48 +00:00
bouyer
4c9516aa3b
Rework the command queue, to avoid having commands blocked at the end
...
of the queue. Load is now properly balanced across all disks of the same bus.
2000-05-05 09:05:44 +00:00
ad
fc89ce9f53
Oops, nuke unused structure member.
2000-05-04 17:27:25 +00:00
bouyer
2306b4a34e
When a WDTR message is rejected, initiate sync negotiation anyway.
...
When a SDTR message is rejected indicate that target is async
Add a missing bus_dma_sync call.
2000-05-04 17:18:27 +00:00
bouyer
f5b572d26b
- LP64 issues in debug printfs.
...
- on a phase mismatch, do byte recovery only if we were in data phase.
Otherwise just clear the fifo.
- Properly handle reject of a sync or wide negotiation.
2000-05-04 16:56:13 +00:00
bouyer
babd44e7a1
Ops, regen siop.out from the last siop.ss.
2000-05-04 15:44:35 +00:00
bouyer
c8ff442f72
Add a flag hold in scratcha0, set when we're doing a data transfer. Used
...
for save data pointers.
2000-05-04 15:42:42 +00:00
mycroft
319d44bfb1
Adjust asm patterns for newer versions of GCC.
2000-05-03 21:20:07 +00:00
thorpej
5a5c88dc4e
`typedef void ifnet_ret_t;' isn't valid C -- use #define, instead. Also,
...
don't abuse the C preprocessor.
2000-05-03 21:08:02 +00:00
thorpej
081e7cbdaf
`typedef void ifnet_ret_t;' isn't valid C -- use #define, instead.
2000-05-03 20:52:29 +00:00
thorpej
b29178acf3
Remove unnecessary junk on #undef line that some C preprocessors
...
get cranky about.
2000-05-03 19:19:04 +00:00
thorpej
e37397c2e8
`typedef void ifnet_ret_t;' isn't valid C -- use #define, instead.
2000-05-03 19:17:54 +00:00
thorpej
ab635a46d3
Slight change to previous.
2000-05-03 19:15:27 +00:00
thorpej
2d66ccbd13
Don't return an uninitialized error code.
2000-05-03 18:58:37 +00:00
thorpej
01e8438aa8
Fill in ccb->ccb_req.sgcount with the value that's guaranteed to
...
be initialized.
2000-05-03 18:58:15 +00:00
mycroft
d0d92c23d0
Use USBD_NORMAL_COMPLETION in the previous.
2000-05-03 18:21:36 +00:00
mycroft
ffe599486c
When emulating UHF_PORT_POWER for the internal hub, make sure to initialize
...
the status return value.
2000-05-03 18:14:49 +00:00
bouyer
3bb9a5f666
- do sync/wide negotiation
...
- use a circular queue for the start slots, so that order has better chances
to be preserved.
2000-05-02 19:03:02 +00:00
augustss
621ef4d785
Add am7930 audio driver.
2000-05-02 06:43:05 +00:00
augustss
f9dbbf4c92
Make am7930 driver machine independent. PR 10032 from Gregory McGarry.
2000-05-02 06:30:49 +00:00
nathanw
8ca78ff825
In siop_lookup_product(), actually check the PCI *vendor* ID as well as the
...
product ID.
Prevents false matches of other devices, such as the DEC 21050 ppb.
2000-05-02 03:59:35 +00:00
thorpej
712326ecbd
Traditionally, the floppy controller was configured at 0x3f0 for 8 ports,
...
but the registers actually begin at 0x3f2, and this is what PNPBIOS reports
for the floppy controller resources. Adjust the register offsets and the
mapping of them for the ISA front-end to compensate, so that the PNPBIOS
attachment of the floppy controller actually works.
2000-05-02 03:33:45 +00:00
thorpej
5e915fcab9
Nuke some dead code.
2000-05-02 03:32:09 +00:00
augustss
c7d698ac41
Support recording conversions that change the sample size. PR 10029, from Gregory McGarry.
2000-05-02 00:00:00 +00:00
augustss
2365a92cb5
Add Creative Music System driver. From Gregory McGarry <g.mcgarry@ieee.org>
2000-05-01 22:48:33 +00:00
augustss
4e1e58e353
Change the way the codec is access to mimic how Linux&FreeBSD does it.
2000-05-01 17:15:41 +00:00
augustss
07f142cd50
Add some more debug output.
2000-05-01 17:10:40 +00:00
tsutsui
9498452c05
- Move some initialization into MI rl_attach() from each bus attachment.
...
- Use proper CARDBUS_* macro in if_rl_cardbus.c
- Use product ID read from PCI configuration space rather than from EEPROM
in if_rl_pci.c.
Patch sent from Masanori Kanaoka <kanaoka@ann.hi-ho.ne.jp> and
some cosmetic changes by me.
2000-05-01 15:08:50 +00:00
soren
ac6e6c980d
Add Seeq 8003 register definitions.
2000-05-01 08:06:17 +00:00
takemura
7d3231b37a
Mouse move event should be made before mouse bown event. Without that,
...
you may got a mouse down event in strange plase.
2000-05-01 07:36:58 +00:00
augustss
fec9706315
Remove unneeded #include "mpu.h"
2000-04-30 22:16:56 +00:00
augustss
aaa405eab7
Add driver for C-Media CMI8x38 Audio Chip. From Takuya SHIOZAKI <AoiMoe@imou.to>
2000-04-30 21:59:58 +00:00
dante
1dbea6c0f9
Add new microcode for all of the supported boards.
...
Fix minor glitches.
Add preliminary support for ASB-3940U3W host adapters; it might work w/ autotermination on.
ASB-3940U3W support is not yet tested due to lack of board.
2000-04-30 18:52:14 +00:00
dante
ff84aeb762
Add ASB-3940U3W host adapters (AdvanSys)
2000-04-30 18:46:18 +00:00
dante
d2679acf60
Add ASB-3940U3W host adpeter (AdvanSys)
2000-04-30 18:34:53 +00:00
tsutsui
439b360ab9
Modify EEPROM read functions and handle also 9356 EEPROM.
...
Fixes kern/9861.
2000-04-30 12:00:40 +00:00
ragge
e623cd6f8f
Discard these old leftovers from the IMP and trailer days!
2000-04-30 11:50:50 +00:00
ragge
6f6bea9eed
Change to use new ubareset() functionality.
2000-04-30 11:46:49 +00:00
ragge
6758522763
Add function uba_reset_establish() to register reset functions like
...
uba_intr_establish(). Basic framework for resource (BDP) allocation,
not yet finished.
2000-04-30 11:46:03 +00:00
ragge
8995505723
Rewritten (most of) the DEUNA/DELUA driver. No more data copy, packet
...
header fiddling and forget driver support for trailers.
2000-04-30 11:43:26 +00:00
mycroft
73ac8c709b
Add a concept of the `background attribute'. This is the same as the
...
current attribute, but has all non-color flags turned off. Use this when
doing erasure, as this allows us to optimize repainting in curses.
XXX The way the default attribute is handled is totally bogus and needs to
be fixed.
2000-04-28 21:56:16 +00:00
augustss
23bcab075a
Don't request sense after INQUIRY. From FreeBSD & OpenBSD.
2000-04-28 21:34:05 +00:00
augustss
d2e2dce826
Regen.
2000-04-28 20:54:39 +00:00
augustss
0b9c397110
Add 2 more eap audio devices.
2000-04-28 20:54:10 +00:00
is
4cacfc5684
change 10base-t media _setting_ to set autodetect instead.
...
Contrary to what the rtl8019 docs say, this seems to be necessary.
Observed by myself when implementing non-auto earlier, and independently
complained about by Antti Kante in PR 9962.
2000-04-28 17:49:03 +00:00
uch
bbb8c56fcb
add PCI_MAPREG_PPB_END (PCI-PCI bridge) PCI_MAPREG_PCB_END (PCI-Cardbus bridge)
2000-04-28 17:12:45 +00:00
augustss
308fa27a0d
Unmute some mixer controls by default. From OpenBSD.
2000-04-28 12:39:59 +00:00
jdolecek
520f9dc581
pasfind(): avoid silly bug - if bus_space_map() of SB I/O space failed,
...
we used bad label and tried to bus_space_unmap() invalid memory
region
Fixes port-i386/9992 by Jarkko Teppo <jate@uwasa.fi>.
2000-04-28 08:51:42 +00:00
tsutsui
61e3f39169
Fix copyright notice as per request from the author.
2000-04-28 03:48:56 +00:00
bouyer
fcf693203f
More big-endian fixes from Izumi Tsutsui.
2000-04-27 16:49:07 +00:00
augustss
30c20f930f
Change my email address.
2000-04-27 15:26:44 +00:00
augustss
91878e8679
Reorder some #defines.
2000-04-27 15:25:36 +00:00
bouyer
fe54b787dc
Add NetBSD RCS Id and copyrigth notice.
2000-04-27 14:08:09 +00:00
bouyer
bf7a94ec2b
Fix copyrigth notice.
2000-04-27 14:06:57 +00:00
bouyer
2fb93595b2
Note siop changes.
2000-04-27 12:48:59 +00:00
oster
db11351ced
Make sure the config structure allocated during autoconfiguration actually
...
gets initialized properly. Should fix PR#9816.
2000-04-27 00:57:48 +00:00
bouyer
ce7f4dafe1
Big-endian fixes from Izumi Tsutsui.
2000-04-26 20:00:31 +00:00
thorpej
ef25b7769e
Regen.
2000-04-26 17:30:59 +00:00
thorpej
0defe75e76
Add product ID for the PLX Technology 9060ES PCI bus controller. Note this
...
ID isn't normally seen, as just about every device with a PLX on it loads
a different ID from an EEPROM, but there's no harm in documenting it.
2000-04-26 17:30:35 +00:00
ad
d5d441a516
- Bump xfer size limit to the maximum allowable.
...
- 20 CCBs is enough to maintain a constantly stuffed inbound FIFO.
2000-04-26 15:58:01 +00:00
ad
75bb77ed56
- Rearrange some spl*() calls to be as intended.
...
- Scan cac_cd in cac_shutdown(), don't use a SIMPLEQ.
2000-04-26 15:54:02 +00:00
tsutsui
b4f524c223
- Allocate mbuf dynamically on Tx and use bus_dmamap_load_mbuf(9).
...
- Call bus_dmamap_sync(9) as appropriate.
- Leave only register declarations in rtl81x9reg.h and
split other stuff into rtl81x9var.h.
bus_dma(9) code mostly taken from thorpej's if_rtp.c.
2000-04-26 14:02:34 +00:00
thorpej
8b8597dae0
Recognize the Crystal CS4297A codec, and add a couple of macros
...
to manipulate AC97 codec IDs.
2000-04-26 00:00:41 +00:00
bouyer
eba93ce7d2
Ops, need to restore correct DSA value after a phase mismatch, we may have
...
been interrupted during a S/G operation.
2000-04-25 20:02:33 +00:00
bouyer
88be4752d0
- Change the script to start new commands in an asyncronous way, using
...
'command slots' in which the host can put command and wait for the script
to start them
- Change siop.c to do full disconnect/reslelect, allowing as much as one
command per target/lun to run in parallel.
- Fix bug in registers init where a board without BIOS would end at
ID 0 (now the driver works on alpha too).
- better handling of messages, sending back a MSG_EXT_SDTR in response to an
incoming MSG_EXT_SDTR, and MSG_MESSAGE_REJECT for unhandled messages.
- fix use of bus_dmamap_sync() and htole32().
- supports shared interrups
- change some int8 and int16 to int, for alpha and mips benefits ( suggested by
Toru Nishimura)
2000-04-25 16:27:05 +00:00
bouyer
5ee6872b46
- Add support for NOP instruction
...
- fix dsp value for second operand of memory move, so that patch list will be
correct.
2000-04-25 16:01:16 +00:00
augustss
df70862e8c
Insert (very conservative!) bus_space_barrier() calls at all register accesses.
...
The bus_space(9) man page says you've gotta have them...
2000-04-25 14:28:13 +00:00
tsutsui
6369b56c99
Fix two endian problems. rtk now works on macppc.
...
- Use le32toh() on reading rxstat from the Rx DMA buffer.
- rl_read_eeprom() should return EEPROM values in little endian
when caller requires byte-stream data.
bus_dma(9) fixes are still on-going.
XXX rtk on macppc seems to make tons of CRC errors...
XXX Does it work fine on i386 or others?
2000-04-25 14:16:46 +00:00
augustss
74beeca710
Move the size of the mapped bus_space region into the bus independent softc.
2000-04-25 09:20:54 +00:00
augustss
aae26d0d0c
Move a test if the MIDI is open outside a loop in the interrupt routine.
...
Some stylistic changes.
2000-04-24 17:55:24 +00:00
tsutsui
6f9392b42a
Merge changes of sys/pci/if_rl.c rev. 1.8->1.10. (from kern/9870)
...
Also remove unused pbase, vbase and PCI_CAP_PWRMGMT declarations.
2000-04-24 15:25:00 +00:00
augustss
4d0217d2c1
Remove item.
2000-04-23 23:21:32 +00:00
augustss
007a7dbfd8
Update with new files.
2000-04-23 23:19:36 +00:00
augustss
0e5c7f55af
Regen.
2000-04-23 19:35:35 +00:00
augustss
23f3c0074f
Sync with FreeBSD: add two more adapters.
2000-04-23 19:03:45 +00:00
thorpej
0cde36f780
Carve off the ISA configuration bits from the floppy driver. Driver is
...
still ISA-specific, but we can attach ISA instances with different
configuration mechanisms now.
2000-04-23 16:47:45 +00:00
augustss
b12ed6c03b
Make it possible to move a device to its unconfigured state by
...
using config #0 .
2000-04-23 00:46:59 +00:00
augustss
bc5e86601e
Add an item.
2000-04-22 22:52:15 +00:00
augustss
3a27942ba8
Add a clarifying comment.
2000-04-22 22:50:44 +00:00
thorpej
8ec60a189f
Make sure the payload is aligned when using E2-over-802.11 encapsulation,
...
as enabled by the LINK0 flag. Fixes PR kern/9700.
2000-04-22 22:36:14 +00:00
augustss
5ea1af4bf4
Regen.
2000-04-22 18:07:19 +00:00
augustss
f468f877de
Add some CMedia audio devices. From T.SHIOZAKI <AoiMoe@imou.to>
2000-04-22 17:32:02 +00:00
ragge
11379e0ab6
Add the famous "rl" disk.
2000-04-22 16:46:45 +00:00
augustss
84f24d3c29
The D-link serial adapter lies about being self powered. It's obviously
...
bus powered. How can we do power budgeting when the devices lie?
2000-04-21 21:02:44 +00:00
augustss
60bb0d050d
Add some comments.
2000-04-21 20:58:56 +00:00
explorer
d592132506
the status register is _always_ at 0x420 -- grr. How should I put this in the config file rather than hard-coded?
2000-04-21 20:13:41 +00:00
augustss
46fb8de93a
Use a 255 ms interrupt interval even if the descriptor in the hub asks
...
for something else, because the spec says that it should be 255.
2000-04-21 19:51:43 +00:00
augustss
6bc85d9fa0
Minor nit: Use another TAB in formatting to make the columns straight.
2000-04-21 19:49:59 +00:00
ragge
171d9f6a3f
First version of keep-track-of-used-devices file.
2000-04-21 19:05:43 +00:00
augustss
4379f92630
Make sure to read the full hub descriptor (including the deprecated field).
2000-04-21 18:57:40 +00:00
bouyer
19ada4a82a
Snapshot of work in progress: new driver for the NCR 53c8xx SCSI controller
...
(the name 'siop' is still being discussed, may change).
Only basic disconnect/reselect for now, no sync/wide negotiation.
Tested with 810A, 875 and 895 on i386 only.
The bus-independant part should also be able to handle the 53c720 and 53c770.
A new driver with enhanced script should appear for the 825/875/895 'soon'.
2000-04-21 17:56:58 +00:00
bouyer
cd5411b382
Script assembler for the NCR 53c7xx/8xx scsi controller. Initial work
...
done by Michael L. Hitch, support for the 8xx and some improvements
by me.
2000-04-21 17:50:07 +00:00
explorer
1118b3ee75
Add driver for Addonics FlexPort 8S (and probably 4S, but not tested)
2000-04-21 17:48:30 +00:00
augustss
3d9d091685
Change the exact sequence of commands when a hub is attached to follow
...
Windoze more closely. This makes more devices work.
After two years of doing USB work I've finally access to a USB protocol
analyzer. Which means I should be able to mimic what Windoze does in
certain cases instead of just following the specs. Following the specs
is not enough since the devices often don't.
2000-04-21 16:05:50 +00:00
augustss
878deae672
Add a define for some slack port power up time.
2000-04-21 16:01:31 +00:00
augustss
9fb474fcf0
Regen.
2000-04-21 15:59:43 +00:00
augustss
f791a72b9c
Change error reporting in port reset function.
2000-04-21 15:58:55 +00:00
augustss
3f08804668
Pretend we know how to turn on port power (it's always on).
2000-04-21 15:40:01 +00:00
augustss
fdeba432d2
Add a comment about a non-obvious use of a #define.
2000-04-21 15:38:55 +00:00
augustss
d744db2ea9
Add D-link serial adapter (made by someone else :).
2000-04-21 15:37:50 +00:00
augustss
e1950d4ffa
regen.
2000-04-20 23:40:27 +00:00
augustss
3e4e60beeb
Add Zip 250.
2000-04-20 23:39:50 +00:00
thorpej
13c39a5cb6
Put the rasops attributes in conf/files so that everyone can run
...
config(8) without pulling in files.rasops. There is prior art for
this, e.g. audio.
2000-04-20 18:23:37 +00:00
nathanw
3e49436f9d
Replace rcons console code with rasops console code.
...
Console text should now be supported on all TGA cards;
8- and 32-bit TGA and 8-bit TGA2 have been tested.
Implement accelerated character drawing, scrolling, and clearing.
Stop clearing "odd" in VHCR; it's unnecessary and hurts performance.
Use bus_space_vaddr() instead of a local hack.
2000-04-20 05:25:20 +00:00
augustss
173c535a95
Add one, remove some.
2000-04-19 16:17:45 +00:00
haya
784977f319
Changes the name of RealTek driver. The new name is `rtk'. This used
...
to be called `rl' and it conflict with RL vax disks, canonical and
historical unix driver name.
This changes are minimal: it only changes the name of RealTek driver.
The filename of source code and a lot of the letter `rl' in source
files should be changed shortly.
2000-04-19 08:44:31 +00:00
bouyer
5803932005
Regen
2000-04-19 07:52:33 +00:00
bouyer
01beba012a
Add some Symbios devices.
2000-04-19 07:51:20 +00:00
enami
a2bf544200
Allocate the variable `inqbuf' in scsi_probedev on stack rather than
...
statically. Since this function may called for another luns immediately,
allocating it statically doesn't make sense and may cause race condition
as pointed out by PR#9749.
2000-04-19 04:49:50 +00:00
enami
debe6e88b6
Calculate an offset of mailbox_in correctly by renaming BHA_MBO_OFFSET
...
to BHA_MBX_OFFSET and using it also for mailbox_in. Since all mailboxes
should be placed in a single continuous memory due to a hardware limitation,
an offset of any mailbox can be/should be calculated using a same expression.
2000-04-19 02:39:12 +00:00
haya
edfd8044ec
Maintenace: add definitions for command status register.
2000-04-19 01:19:04 +00:00
cgd
0d117aa518
regen for changed pcidevs
2000-04-18 16:38:12 +00:00
cgd
88e62f7c84
SiByte, Inc. is vendor 0x166d.
2000-04-18 16:37:00 +00:00
oster
5845348e54
Revert last change (the last change was not necessarily desirable, and
...
had some other minor side-affects that were troublesome).
2000-04-17 19:35:12 +00:00
cgd
a267efd061
#if 0 the (way bogus) PCI_CLASS_COMMUNICATIONS/PCI_SUBCLASS_BRIDGE_PCI (!!!)
...
match pointed out (again?) by Johan Danielsson, after i repeatedly told
him not to do something similar in com_cardbus.
2000-04-17 16:45:04 +00:00
joda
5c507c46b5
regen
2000-04-17 12:01:20 +00:00
joda
4f797c7b55
Panasonic KXLC003
2000-04-17 12:00:35 +00:00
joda
7dbedb5a11
rewrite match function to use CIS information
2000-04-17 09:21:59 +00:00
joda
1f1d169e20
extract serial funce
2000-04-17 09:16:38 +00:00
joda
6e5b98b12c
add serial funce entry
2000-04-17 09:15:58 +00:00
thorpej
d8bccc7c6e
Regen.
2000-04-17 00:26:45 +00:00
thorpej
fcd420cf5d
Add product ID for the S3 Trio3D/2X AGP graphics adapter.
2000-04-17 00:26:22 +00:00
pk
0ba1516cd7
Use a default attribute to restore the display mode to original settings.
...
Also, pass in WSATTR_COLORS at all times when allocating screen attributes
since without it we cannot even get black-on-white from rasops(9).
2000-04-16 21:49:49 +00:00
augustss
876b21e514
Add more items and reorganize.
2000-04-16 18:38:44 +00:00
matt
0aae0cd7a6
only print packets if debug > 1
2000-04-16 17:03:42 +00:00
ragge
9403f3fec8
Reset the device before starting the init sequence.
...
Add shutdown hook.
2000-04-16 09:55:39 +00:00
oster
c71398f7a9
Don't allow configuration where the specified SectPerSU may result in IO larger
...
than MAXPHYS being sent to underlying devices. Addresses PR#9868.
Will change if/when MAXPHYS goes bye-bye.
2000-04-16 03:24:26 +00:00
augustss
6d6ad52fd4
Regen.
2000-04-15 15:57:59 +00:00
augustss
f6b73a654c
Add another camera.
2000-04-15 15:57:27 +00:00
veego
8c1897c2fd
Also add the Intel ID for the LAN+MODEM56 card to the csdevs list to get
...
it working.
2000-04-15 06:29:25 +00:00
tsarna
501c07e5d4
Add an "iopener" keymap variant, giving us.iopener and
...
us.iopener.swapctrlcaps. This makes F1 ("Back") into Escape, and shifts
the other keys over by one, so F2-F12 ("Forward"-"Home") become F1-F11.
2000-04-14 23:11:08 +00:00
pk
321bc31690
Remove spurious splx() call.
2000-04-14 20:33:48 +00:00
scw
c56f4bceb8
Fix some callout fallout. Hi Jason!
2000-04-14 19:31:50 +00:00
augustss
b6ef06e018
Add a file I forgot.
2000-04-14 18:15:47 +00:00
augustss
2ed37fcf5d
Add driver for FTDI FT8U100AX serial adapter.
...
XXX This is still experimental and needs more work.
2000-04-14 14:51:22 +00:00
augustss
219f3c9ccf
More debug.
2000-04-14 14:41:35 +00:00
augustss
1767c08cba
Add a capability for pre/post processing on write/read.
2000-04-14 14:21:55 +00:00
augustss
3149043619
Add a driver for the Rio 500 MP3 player.
...
XXX This driver might go away again, since you can do it all with ugen.
XXX But this driver is compatible with the Linux driver so there are
XXX programs for it.
2000-04-14 14:20:02 +00:00
augustss
0839e2a0d9
Regen.
2000-04-14 14:15:41 +00:00
augustss
471d06cfbc
Rename FUTURE to FTDI.
...
Add the funky little D-Link radio.
2000-04-14 14:14:48 +00:00
augustss
017ca78459
Make attach of ugen work as it should so product&vendor locators can be used.
2000-04-14 14:13:56 +00:00
augustss
e44f0f1147
Support for SIGIO.
2000-04-14 14:12:47 +00:00
augustss
eaaf682603
Fix a typo in a comment.
2000-04-14 14:12:11 +00:00
augustss
e1f94170e5
Generate a diagnistic dump on "Host Controller Halted".
2000-04-14 14:11:36 +00:00
mrg
dfe176302c
add some casts to (u_long) to shut up gcc
2000-04-14 08:22:49 +00:00
joda
e3f576a688
disable function after attach
2000-04-13 16:17:55 +00:00
joda
90bee16298
enable com at cardbus
2000-04-13 11:18:24 +00:00
joda
8fba568264
cardbus attachment for com devices (thanks to Chris Demetriou and
...
Darren Reed for constructive criticism and help with testing)
2000-04-13 11:17:53 +00:00
joda
3692f27c7d
regen
2000-04-13 10:13:12 +00:00
joda
69241946d8
add entry for a Xircom modem (as reported by Darren Reed)
2000-04-13 10:12:46 +00:00
joda
81bac16312
add CARDBUS_SUBCLASS_COMMUNICATIONS_SERIAL
2000-04-13 10:11:15 +00:00
scw
d5d6c20e74
Regen
2000-04-12 21:13:12 +00:00
scw
e083abcad8
Add support for the SOHOware PCMCIA Ethernet card, model ND5100-E.
...
This seems to be a re-badged NDC (National Datacomms. Corp) card.
It needs a quirk entry due to lack of manufacturer tuple in the CIS.
For some reason, the 'Tx/Rx' LED on the connector module is inverted
such that it is off during network activity...
2000-04-12 21:07:55 +00:00
pk
eba24e4799
* Spell shift counts in decimal and masks in hex
...
* Optimize numerous array references
* Cleanup whitespace turds
2000-04-12 14:22:28 +00:00
itojun
ecb5f2e56a
revisit in6_ifattach().
...
- be persistent on initializing interfaces, even if there's manually-
assigned linklocal, multicast/whatever initialization is necessary.
- do not cache mac addr in the kernel. grab mac addr from existing cards
(this is important when you swap ethernet cards back and forth)
now ppp6 works just fine!
call in6_ifattach() on ATM PVC interface to assign link-local, using
hardware MAC address as seed.
(the change is in sync with kame tree).
2000-04-12 10:36:38 +00:00
haya
21837796b8
Maintenace: add NetBSD tag and correct the name of the auther.
2000-04-11 06:57:59 +00:00
haya
1e921e0bd3
Regen.
2000-04-10 07:46:51 +00:00
haya
e49807d100
Incorporate the changes of RL81x9 driver provided by M. Kanaoka
...
<kanaoka@ann.hi-ho.ne.jp>. He separated the driver into IC specific
portion and bus attachment portion and added cardbus attachent.
2000-04-10 07:42:55 +00:00
bouyer
73fe3e3323
Add dependancy to wdc for ata.c, so that 'atapibus at umass' will compile
...
without wdc or pciide. Closes kern/9842 from Gary Duzan.
2000-04-10 06:43:38 +00:00
chs
8ad280f815
sparc -> __sparc__
...
sun3 -> __sun3__
2000-04-10 02:16:15 +00:00
augustss
40b25953db
Add driver for Prolific PL2301/PL2302 host-to-host adapter.
2000-04-09 18:23:23 +00:00
ragge
d9c7f72cf3
Device driver for the DEC DEBNA/DEBNT/DEBNK ethernet device.
...
This is for sure the most overkill hardware I've ever seen! For example,
it needs the VAX page tables so that it can access all data structures
and mbufs in virtual memory! It will be a real challenge to make this
device work on mips and Alpha systems :-)
2000-04-09 16:49:57 +00:00
augustss
8fb6cb9b81
Remove usused field.
2000-04-08 20:54:38 +00:00
augustss
2d88a5d886
Regen.
2000-04-08 20:35:13 +00:00
augustss
e75e18b138
Add another ISD IDE adapter.
2000-04-08 20:14:00 +00:00
tsutsui
909b096cf8
Remove #ifdef __NetBSD__ code inside !__NetBSD__ part.
2000-04-08 13:49:43 +00:00
tsutsui
de19673726
Add vaddr_t cast to vtophys() arg. (for powerpc)
2000-04-08 13:44:12 +00:00
tsarna
9964217571
Fix fms_free like auvia_free
2000-04-08 03:50:48 +00:00
tsarna
a1ea15c0e1
Fix auvia_free, clean up more on close, and be more careful in interrupt
...
handler.
2000-04-08 03:33:58 +00:00
itojun
d65678850d
fix build of ucom. (static/non-static)
2000-04-08 01:22:26 +00:00
augustss
ef57f37442
Regen.
2000-04-07 19:00:17 +00:00
augustss
4ca1044eb8
Add Prolific host-host adapter.
...
I'll write a driver in a few days.
2000-04-07 18:59:58 +00:00
thorpej
0ed7436590
Add a patchable variable `tlp_srom_debug' that enables dumping of
...
SROM output, etc.
2000-04-07 18:58:15 +00:00
thorpej
4044b5a41c
Use separate callouts for motor-on and motor-off. Fixes a condition
...
where the floppy driver would wedge because a motor-on timeout would
be cancelled by another I/O operation cancelling a motor-off timeout.
From enami tsugutomo <enami@sm.sony.co.jp>.
2000-04-07 16:58:53 +00:00
thorpej
91d6998394
Combine the Alpha, BeBox, and i386 ISA floppy drivers with a sledgehammer.
...
Not a perfect solution, but this is two less versions of this driver I
now have to modify.
2000-04-07 16:32:03 +00:00
augustss
3b05a69aa2
Remove a couple of Static that shouldn't be there.
2000-04-07 12:40:16 +00:00
augustss
9355847b78
Fix typos in comments.
2000-04-06 23:44:20 +00:00
augustss
af0c0d535a
Fix a bug in HID Pop handling. From UCHIYAMA Yasushi.
2000-04-06 22:58:32 +00:00
tsutsui
cae6a3d2a4
Fix bogus byte-swap code in ncr_snooptest().
...
XXX This snoop test is not needed if ncr had real bus_dma(9) support...
2000-04-06 14:42:06 +00:00
augustss
7859835446
Add another #if NATAPIBUS > 0 in case there is no atapibus attached.
2000-04-06 13:52:04 +00:00
augustss
cf248f12dd
Add some, remove some.
2000-04-06 13:33:47 +00:00
augustss
a302716de4
Let the parent device of a ucom decide what size the read and write
...
buffers should be since it knows about the speed.
Increase the buffer size of uvisor.
XXX The uvisor is still pitifully slow. There must be a problem somewhere.
2000-04-06 13:32:28 +00:00
haya
7bc5a1ca36
Add CardBus interrupt enable flag. When this flag is asserted, a
...
CardBus interrupt is routed to the child devices and vice versa. This
flag is negated when a pccbb receives a suspend or stanby event.
2000-04-06 09:11:57 +00:00
augustss
1acb380bf7
Make it compile without USB_DEBUG. From Chris Jones.
2000-04-05 21:24:11 +00:00
nathanw
bac9153774
Advance index into rasops_cmap for each color, not per triplet.
...
This makes highlighing and color possible on truecolor displays.
2000-04-05 20:33:28 +00:00
augustss
1b535c32fc
Make this driver actually work.
...
(Noone did any testing for me, so I had to buy a Handspring Visor myself.)
2000-04-05 11:12:48 +00:00
augustss
8b5373dd2e
Use reference counting on the softc so detach doesn't blow it away prematurely.
2000-04-05 11:11:33 +00:00
mrg
952f1cf1d0
avoid using uninitalised variables inside WDCDEBUG.
2000-04-05 06:27:36 +00:00
mrg
36b65b7d48
return if we can't map DMA buffers
2000-04-05 05:54:02 +00:00
enami
07702f68a6
Introduce new filesystem type FS_CCD so that an operator can mark the
...
ccd component partition. Note that the ccd driver still allows partitions
of any types as components since an on-disk BSD disklabel isn't available
on some port.
2000-04-05 04:03:20 +00:00
mrg
710872c1d0
add "hme at pci" support.
2000-04-05 02:31:19 +00:00
nathanw
2d78be17d1
Fix computation of ri_xorigin in RI_CENTER case; convery from bytes to
...
pixels, not from bytes to bytes^2/pixel.
2000-04-04 20:59:17 +00:00
augustss
36b5d25ca8
Make protocol message more accurate.
2000-04-04 20:16:47 +00:00
augustss
a94b555441
Put a ratecheck on error messages from the interrupt pipe.
2000-04-04 20:16:19 +00:00
thorpej
5ecdfa3fc0
Rearrange the 21142/21143 SROM/CIS handling code to give it a chance
...
of working, and last-ditch default to MII-over-SIO with no reset routine
if we don't find an ISV SROM or quirk.
2000-04-04 19:33:21 +00:00
thorpej
5a41b5bf56
- if_tlp_cardbus.c: Use the `pmreg' pointer passed by by
...
cardbus_get_capability() [mirror change already made to if_tlp_pci.c]
- if_tlp_cardbus.c: If we don't find an ISV SROM, try to grab the
Ethernet address from the CIS.
- if_tlp_cardbus.c: set CardBus cards to store-and-forward mode from
the get-go.
- Put the TxThresh tables in tulipvar.h, and use them in the CardBus
and PCI front-ends to go to store-and-forward mode.
- Document the Xircom X3201-3 clone a little more.
2000-04-04 19:22:50 +00:00
bouyer
77f1e5eb02
Add checks to detect busy-waits, conditionnal on new debug flag
...
DEBUG_DELAY (0x40). This will print how much time we did loop in wdcwait(),
if we had to read registers more than one time.
2000-04-04 12:43:13 +00:00
bouyer
fcb3e9ddac
Better fix to previous: delay(100) before the IDENTIFY, and if it fails
...
delay(1000000) and retry. The 1s delay is needed for some special case only,
no need to hang the machine for that long everytime (especially for PCMCIA).
2000-04-04 09:25:51 +00:00
joda
d3b06b0596
regen
2000-04-03 15:05:05 +00:00
joda
0caed62b03
add some NVIDIA chipsets
2000-04-03 15:04:42 +00:00
augustss
358b947b7b
Correct a typo.
2000-04-03 13:40:05 +00:00
augustss
d063047593
Enable QIC157 command set. Untested.
2000-04-03 12:31:34 +00:00
augustss
dc3ce0b35e
Enable UFI protocol. Still untested in NetBSD. Used by, e.g., Y-E Data
...
floppies.
2000-04-03 12:12:38 +00:00
augustss
b9d50c36a7
Regen.
2000-04-03 12:10:04 +00:00
augustss
e0b4887adf
Add more vendors and devices. From FreeBSD and Nick Hibma.
2000-04-03 12:09:43 +00:00
enami
6442efb498
Make this file compiles under some condition:
...
- #if 0'ed out the umass_reset for now.
- some atapibus specific code is conditionalized by NATAPIBUS.
2000-04-03 03:56:49 +00:00
enami
c560e9a77b
When killing pending xfers on device detach, we can't expect scsipi_done
...
to remove all xfers from the pending queue. It removes only xfers for
asynchronous transactions. So, simply loop over all pending xfers
with calling scsipi_done and wait xfers to drain. Addresses PR#9703.
2000-04-03 03:37:33 +00:00
cgd
1f0de7e7d2
actually put a _comment_ before the second read of the ident register
...
that Charles added in rev 1.58. Not only is it good programming practice
to explain magic, but code that looks like:
reg = pcic_read(h, PCIC_IDENT);
reg = pcic_read(h, PCIC_IDENT);
is _gonna_ be interpreted as a cut-n-paste error by someone eventually.
2000-04-03 01:55:25 +00:00
enami
ae8fb348b3
Fold long line.
2000-04-03 01:40:51 +00:00