Commit Graph

11860 Commits

Author SHA1 Message Date
augustss
d787f49ee6 Fix descriptor definition bug.
Clear endpoint stall on error.
2001-12-14 12:02:53 +00:00
bjh21
2ee0431a3d Register definitions for the NatSemi DP83905 AT/LANTIC, as used in many
podulebus Ethernet cards.
2001-12-14 10:16:03 +00:00
gehenna
f144837e0e Stylistic changes 2001-12-14 08:58:49 +00:00
gehenna
2d27ad7c73 Define a new structure to store wire specific control methods.
The basic BBB/CBI functions are stored as members of constant structure.
When attached device, softc holds one of that constant structures.
2001-12-14 08:46:19 +00:00
ichiro
69424fd268 typo fix 2001-12-14 08:33:54 +00:00
gehenna
49bba69842 Use device handle and interface number which are stored in softc. 2001-12-14 06:21:56 +00:00
gehenna
53f34def69 Change style to store endpoint addresses and pipes. 2001-12-14 05:58:13 +00:00
mjacob
219d22404b Major restructuring for swizzling to the request queue and unswizzling from
the response queue. Instead of the ad hoc ISP_SWIZZLE_REQUEST, we now have
a complete set of inline functions in isp_inline.h. Each platform is
responsible for providing just one of a set of ISP_IOX_{GET,PUT}{8,16,32}
macros.

The reason this needs to be done is that we need to have a single set of
functions that will work correctly on multiple architectures for both little
and big endian machines. It also needs to work correctly in the case that
we have the request or response queues in memory that has to be treated
specially (e.g., have ddi_dma_sync called on it for Solaris after we update
it or before we read from it).

One thing that falls out of this is that we no longer build requests in the
request queue itself. Instead, we build the request locally (e.g., on the
stack) and then as part of the swizzling operation, copy it to the request
queue entry we've allocated. I thought long and hard about whether this was
too expensive a change to make as it in a lot of cases requires an extra
copy. On balance, the flexbility is worth it. With any luck, the entry that
we build locally stays in a processor writeback cache (after all, it's only
64 bytes) so that the cost of actually flushing it to the memory area that is
the shared queue with the PCI device is not all that expensive. We may examine
this again and try to get clever in the future to try and avoid copies.

Another change that falls out of this is that MEMORYBARRIER should be taken
a lot more seriously. The macro ISP_ADD_REQUEST does a MEMORYBARRIER on the
entry being added. But there had been many other places this had been missing.
It's now very important that it be done.

For NetBSD, it does a ddi_dmamap_sync as appropriate. This gets us out of
the explicit ddi_dmamap_sync on the whole response queue that we did for SBus
cards at each interrupt.

Set things up so that platforms that cannot have an SBus don't get a lot of
the SBus code checks (dead coded out).

Additional changes:

Fix a longstanding buglet of sorts. When we get an entry via isp_getrqentry,
the iptr value that gets returned is the value we intend to eventually plug
into the ISP registers as the entry *one past* the last one we've written-
*not* the current entry we're updating. All along we've been calling sync
functions on the wrong index value. Argh. The 'fix' here is to rename all
'iptr' variables as 'nxti' to remember that this is the 'next' pointer-
not the current pointer.

Devote a single bit to mboxbsy- and set aside bits for output mbox registers
that we need to pick up- we can have at least one command which does not
have any defined output registers (MBOX_EXECUTE_FIRMWARE).

Explicitly decode GetAllNext SNS Response back *as* a GetAllNext response.
Otherwise, we won't unswizzle it correctly.

Nuke some additional __P macros.
2001-12-14 00:13:44 +00:00
mjacob
acbfdd822a Roll f/w to latest level, correcting several, ah, interesting bugs. 2001-12-14 00:07:55 +00:00
bouyer
71e063c830 pdc202xx_setup_channel: remove a duplicate line. 2001-12-13 20:57:22 +00:00
bouyer
ca9f8b13da Regen: Add some promise controllers, from FreeBSD 2001-12-13 20:41:05 +00:00
bouyer
b981b05472 Add some promise controllers, from FreeBSD 2001-12-13 20:40:28 +00:00
augustss
04c10fc0cf Initialize lock. 2001-12-13 17:25:37 +00:00
augustss
3df38cc501 Some debug stuff. 2001-12-13 17:15:09 +00:00
augustss
f2821a312a Fix TODO comment. 2001-12-13 17:14:21 +00:00
augustss
090d1a628e Move parameter checks to a common place. 2001-12-13 15:09:07 +00:00
augustss
2485171a67 Use unsigned ints. 2001-12-13 15:08:26 +00:00
junyoung
9dbc5fd199 ANSIfication & KNF fixes. 2001-12-13 08:38:35 +00:00
junyoung
f075aa60ac ANSIfication & cosmetic changes. 2001-12-13 08:35:38 +00:00
junyoung
9ff2a7a76d ANSIfy. 2001-12-13 08:34:55 +00:00
junyoung
d5decae4e0 ANSIfication & cosmetic changes. 2001-12-13 08:31:39 +00:00
tacha
cba701fed7 remove bogus printf. 2001-12-13 02:50:30 +00:00
augustss
0ba8bac8fe Fix some bugs. But the driver is still borken. 2001-12-13 02:16:21 +00:00
augustss
d6bbabfb1b Some DIAGNOSTIC nonsense. 2001-12-13 00:33:58 +00:00
augustss
a97820e536 Don't use u_int since it requires sys/types.h 2001-12-13 00:33:36 +00:00
augustss
8e98b4a185 Add some special cases for the Sitecom adapter.
Make endian safe.
Fix some minor bugs.
2001-12-12 23:59:48 +00:00
augustss
3ed67fc0c4 Add missing delay for the tekram dongle. 2001-12-12 17:52:06 +00:00
augustss
5c0685d35e Don't use timeout 0 to tsleep() when the time is short. 2001-12-12 17:21:36 +00:00
augustss
0a4d7b9de3 Add a scanner quirk for keeping the pipes open between device opening.
Idea from Enami.
2001-12-12 15:48:18 +00:00
augustss
7727919172 Use USBD_NO_COPY in for some transfers where it was missing. 2001-12-12 15:44:47 +00:00
augustss
2fdd0f5a4b Some more paranoia checks when DIAGNOSTIC. 2001-12-12 15:38:58 +00:00
augustss
29c3fe261b Add some comments. 2001-12-12 15:38:27 +00:00
augustss
95d1208c14 Regen. 2001-12-12 15:37:21 +00:00
augustss
290d3a0d9e Add some devices. 2001-12-12 15:36:59 +00:00
augustss
dfbcffae07 Remove some stupid casts. 2001-12-12 15:36:08 +00:00
augustss
2fe5c52a53 Use unsigned ints for device settings. 2001-12-12 15:34:49 +00:00
augustss
fae70125c0 Change default value for ebofs. 2001-12-12 15:34:15 +00:00
augustss
0680aa8809 Add some ioctl()s for consumer IR. 2001-12-12 15:33:53 +00:00
augustss
bb9f9be772 Add uirda. 2001-12-12 15:31:33 +00:00
augustss
4a802f4928 Add USB-IrDA bridge.
Needs more testing.
2001-12-12 15:27:24 +00:00
augustss
22735e5d44 Move usbd_clear_endpoint_toggle() prototype to usbdi.h. 2001-12-12 15:23:58 +00:00
gehenna
968318a989 Use vendor/product variables 2001-12-12 14:24:53 +00:00
gehenna
0f983137af Don't change wire protocol state in umass generic function 2001-12-12 13:23:20 +00:00
gehenna
54e3c1962e bcopy -> memcpy 2001-12-12 13:17:03 +00:00
elric
51b292ea65 Added support for the PowerStorm 4d20, initial support that is.
I plan on cleaning a few things up over the next few days, but this
appears to be working for me.
2001-12-12 07:50:05 +00:00
elric
94448f7e52 Update the ramdac interface to be allow the setting of dotclocks. This is
required to support the driver in ibm561.c.
2001-12-12 07:47:46 +00:00
elric
8ffabd82eb Initial support for the IBM RGB561 RAMDAC. This uses the same interface
as the Bt463 and Bt485 drivers.
2001-12-12 07:46:48 +00:00
tv
8e6f7afb5b MKfoo=no -> NOfoo 2001-12-12 01:48:43 +00:00
augustss
1ad59a57f2 Recognized Danube chip as well.
Small cleanup.
2001-12-11 21:34:06 +00:00
pk
f696afd8ff Name changes: {KBD,MS}_BPS => {KBD,MS}_DEFAULT_BPS 2001-12-11 17:27:25 +00:00
ad
f1e83bd500 Regen. 2001-12-11 11:21:56 +00:00
ad
a2b8531ff3 Add some Intel/ICP-Vortex/Compaq products. 2001-12-11 11:21:01 +00:00
kleink
b327c956d1 Regen: add product ID for the Motorola MPC107. 2001-12-11 11:00:45 +00:00
kleink
4e24ace442 Add product ID for the Motorola MPC107. 2001-12-11 10:57:50 +00:00
kleink
0fc3ae7e76 Add (some) register definitions for the Motorola MPC105 PCI Bridge/Memory
Controller (PCIB/MC).
2001-12-10 12:09:33 +00:00
augustss
aa816a6d89 Regen. 2001-12-10 03:36:54 +00:00
augustss
9cfe511c73 Add some devices. 2001-12-10 03:36:12 +00:00
veego
9d39bbf3a8 Support for dvd region code (RPC). 2001-12-09 22:56:10 +00:00
manu
3cdc6f6197 Changed clocktl interface to use syscallargs structures 2001-12-09 16:10:43 +00:00
fvdl
14deefd5b1 pckbd_enable is called during autoconfig. Using pckbc_enqueue_cmd at
that time will have bad results, such as queue corruption because
of multiple TAILQ_INSERTs, etc, because it's not designed to work
in an interrupt/context-free environment. Use pckbc_poll_cmd instead.
2001-12-09 13:42:01 +00:00
pk
80c46be6c1 KBD_BPS => KBD_DEFAULT_BPS (sync with ms driver nomenclature). 2001-12-09 12:03:32 +00:00
pk
5962ca0a49 Allow SUN_MS_BPS to override the mouse baud rate at all times. (see PR14774). 2001-12-09 12:02:06 +00:00
gehenna
c9b557f40e Add an item 2001-12-09 03:06:46 +00:00
cyber
d6671330e0 The prom doesn't setup the fb if its not set to console.
We shouldn't try to configure it in that case.
This will make serial console work.  completes fix to PR#14213
(Private email determined PR author was using serial console.)
2001-12-08 19:42:45 +00:00
soren
a5812755ac Pass sbus addresses to sbus_bus_map(), not sbus_bus_addr()'d ones. 2001-12-08 05:36:31 +00:00
matt
ee7afa77b2 Fix sense of if to grab address from alternation if srom is not in isv
format on Davicom chips.  Add sparc specific case in this case to call
myetheraddr if oui is all 0s (for Netra X1).
2001-12-07 21:13:58 +00:00
fredette
178a439b58 Regen. 2001-12-07 14:21:18 +00:00
yamt
272f471ee0 add detach support for st. 2001-12-07 11:26:30 +00:00
onoe
e7357c0007 Regen: Add HPB and LPC functions of 82801BAM. 2001-12-07 08:00:35 +00:00
onoe
c971f89005 Add HPB and LPC functions of 82801BAM. 2001-12-07 07:59:24 +00:00
cjs
b445461d1e Rebuild these to fix the "generated from" line. 2001-12-07 07:43:10 +00:00
cjs
9dd4ce03d0 Add Palm m500/m505 and Sony Clie USB cradle device IDs. 2001-12-07 06:59:44 +00:00
jdolecek
27b0006d34 it doesn't make sense to wait for resources during autoconfiguration 2001-12-06 21:04:27 +00:00
augustss
ba528e6dec Small change to Christos' fix: allow malloc() to return NULL, but complain
if it does.
2001-12-06 20:00:58 +00:00
christos
94074f1212 change the malloc arg from NOWAIT to WAITOK; pointed out by lennard. 2001-12-06 19:54:02 +00:00
christos
dbabce6bb7 PR/14852: Martin Husemann: Allocate the slotdata the the probed slot before
we call the configuration function. Thanks lennard for pointing it out.
XXX: Someone should look this over and make sure that the current strategy
makes sense.
2001-12-06 19:52:56 +00:00
kleink
bc1f5761e3 Recognize the MK48T18 as well (differs from the MK48T08 only in packaging
options and voltages).
2001-12-06 18:54:23 +00:00
augustss
22fd9bbb5f Add IrDA related defines. 2001-12-06 17:00:26 +00:00
rafal
a76d350acc Fix component class/types to match reality for SGI's ARCS, which is just
different enough from stock ARC to be annoying.
2001-12-06 14:59:02 +00:00
rafal
23e1fa1306 Fix PR 13465 by Krister Walfridsson: memory initialization used uninitialized
variable to start off the write pattern (how ironic! 8-).
2001-12-06 13:18:22 +00:00
msaitoh
72f2d1c3a3 #endif ... -> #endif /* ... */ 2001-12-06 10:28:40 +00:00
augustss
604ea366d4 Restructure to get rid of size limit.
Fix return value bug.
2001-12-06 00:17:12 +00:00
augustss
5ef96ebab2 Don't crash on early calls to get the speeds. 2001-12-06 00:11:18 +00:00
augustss
ec901ec7fe Regen. 2001-12-05 23:25:56 +00:00
augustss
12812553f8 Add a NEC USB 2.0 hub. (USB 2.0 hubs are very rare creatures at the moment!) 2001-12-05 23:25:31 +00:00
bouyer
3fe7074804 Compile with NWD == 0. Fixe kern/14844 by hamajima@nagoya.ydc.co.jp. 2001-12-05 20:43:00 +00:00
augustss
b24bbb4d82 Constify a little. 2001-12-05 20:00:15 +00:00
augustss
47fffba901 Add dongle specific code. 2001-12-05 19:59:54 +00:00
fredette
1a3eaeafd8 Now generate oosiop.out, the compiled 53c700 script. 2001-12-05 18:34:19 +00:00
fredette
ba3be8d408 Generated from oosiop.ss rev. 1.1:
Initial compiled script for 53c700.
2001-12-05 18:32:55 +00:00
fredette
60c77bb2f1 Added support for the Symbios/NCR 53c700 SCSI controller.
This chip is very similar to the 53c710, except that it's
missing a few registers, doesn't do relative jumps and
doesn't have the table-indirect addressing mode.

I have checked that this still generates the same output
on the existing scripts for the other chips.
2001-12-05 18:31:53 +00:00
fredette
8dce160cd1 New script for the Symbios/NCR 53c700 SCSI controller.
This is closely related to osiop.ss, the script for the
53c710.
2001-12-05 18:27:13 +00:00
augustss
bd8b498c42 Do SIR framing on incoming frames. 2001-12-05 15:51:11 +00:00
augustss
8c2cf4c7d8 Break out SIR framing to its own file. 2001-12-05 14:50:13 +00:00
wiz
31fcd50433 Use defparam instead of defflags for some bktr(4) related options that need
a value.  Add BKTR_REVERSE_MUTE to defflags.
2001-12-05 11:41:16 +00:00
simonb
20a3ef2b53 Remove some debug printf()s. 2001-12-05 10:54:51 +00:00
augustss
9c8fe0b8c5 Put bytes on right q. 2001-12-05 04:31:02 +00:00
augustss
0913a897a5 Set error code for IRDA_RESET_PARAMS. 2001-12-05 04:30:24 +00:00
augustss
af5eb6fc8c Fix some minor bug.
Add more debugging.
2001-12-05 04:07:06 +00:00
augustss
b81ddff1a7 Reset parameters on open. 2001-12-05 04:06:32 +00:00
simonb
a9f73b2015 s/defopt/defparam/ in previous; from lukem. 2001-12-05 03:50:09 +00:00
simonb
8a32c6fbfa Change PCI_NETBSD_ENABLE_IDE back to a defopt - it's a mask. 2001-12-05 03:24:57 +00:00
augustss
037eb62a0f Mention that much of the code was stolen from Tommy Bohlin. 2001-12-05 01:13:58 +00:00
augustss
3ead5262dd Add some dongle support ioctl()s. 2001-12-04 23:33:33 +00:00
augustss
527fff66c0 Change speed setting a little. 2001-12-04 21:50:50 +00:00
augustss
e0b032d651 Add ir/ to SUBDIR. 2001-12-04 21:43:44 +00:00
augustss
64a9c02472 Implement speed setting. 2001-12-04 20:53:21 +00:00
jdolecek
a275d0a6b9 clarify copyright - this is all freshly written, no older code used 2001-12-04 20:51:23 +00:00
jdolecek
7a12ca98ab Make this NCR 53C90 driver work, using the chip information from
Tymm Twillman's Linux mca_53c9x driver.
Tested with external ZIP100 only.
2001-12-04 20:47:58 +00:00
sommerfeld
ceb358f80c Fix so these files build with options DEBUG enabled.
The change to edc_mca.c may not work as I don't have any mca hardware.
2001-12-04 20:00:15 +00:00
augustss
636b7788a1 Implement input processing (untested). 2001-12-04 19:56:43 +00:00
augustss
1db6a7d9df Simplify interface to irframe. 2001-12-04 19:56:17 +00:00
christos
4950567ffc Regen. 2001-12-04 18:46:51 +00:00
christos
9925bfcf9f PR/13711: Peter Seebach: Symbol's Spectrum24 pcmcia/prism2 card isn't probed. 2001-12-04 18:46:30 +00:00
bjh21
5aee55caae New file, describing what little I know of the layout of the Oak SCSI card. 2001-12-04 18:40:14 +00:00
wiz
b4371d47f5 Replace some misuses of "then" with "than". 2001-12-04 17:56:30 +00:00
gmcgarry
6dbb6e893b Simply entries added in previous. 2001-12-04 04:30:22 +00:00
augustss
5f99a98472 Add irframetty driver for IrDA frames over serial lines.
THIS MOST DEFINITELY DOES NOT WORK.  IT'S VERY INCOMPLETE.
2001-12-03 23:32:32 +00:00
jdolecek
08733c9d51 add NCR_VARIANT_NCR53C90_86C01 "NCR53C90 (86C01)"
treat exactly like NCR_VARIANT_ESP100
2001-12-03 23:27:31 +00:00
enami
5eb74d8bbe Use correct format letter for chp->channel. 2001-12-03 11:07:34 +00:00
augustss
02aa2a59bc Handle vendor/product lookup with a common routine. 2001-12-03 01:47:12 +00:00
bouyer
bfc80822c7 Update my copyrigth. 2001-12-03 00:20:22 +00:00
bouyer
4ca5497111 Allow wd to attach to something else than wdc/pciide (like USB<->ATA bridges):
- move some functions from ata.c to ata_wdc.c or wdc.c.
- add callbacks to struct ata_bustype so that wd.c doesn't call directly
  functions from the lower level driver.
2001-12-03 00:11:15 +00:00
augustss
23d4159897 Add a subroutine to search for a vendor/product pair. 2001-12-02 23:25:25 +00:00
bouyer
65768c08e2 No need to include atavar.h here. 2001-12-02 22:59:40 +00:00
bouyer
4809ad42cb Clean up attach of wd/atapibus:
kill ata_atapi_attach. Change atapibus to use a struct scsipi_channel instead
of ata_atapi_attach as attach arch. Create a ata_device, compatible with
scsipi_channel, to attach wd.
2001-12-02 22:44:32 +00:00
augustss
194762be5b Touch up a little. No functional change. 2001-12-02 20:29:55 +00:00
augustss
1187860bcf GC unused stuff. 2001-12-02 20:06:00 +00:00
jdolecek
f803294ead use the new MCABUS_DMA_16BIT flag to use 16bit DMA (not implicit anymore) 2001-12-02 17:04:41 +00:00
augustss
2a22b00459 Add some IrDA names. 2001-12-02 16:32:04 +00:00
augustss
766e28edd3 Add driver for the Toshiba's Oboe IrDA chip. From Jan Sparud. 2001-12-02 16:30:30 +00:00
augustss
cf8a8cbe20 Fixes from Jan Sparud's code:
Make read and write methods symmetrical, add poll method.
2001-12-02 16:29:25 +00:00
bjh21
1208c816b3 Add (#ifdef'ed out) code to support the PDMA hardware on the Oak SCSI card.
Unfortunately, this code seems not to work at present.  I don't yet know why.
2001-12-02 14:49:32 +00:00
bjh21
4e3bf132c0 Add comments naming our private-use characters (in lower case, to make them
distinct from real Unicode characters).
2001-12-02 12:46:32 +00:00
augustss
b540959734 Add framework for Ir devices. The irframe device is for delivering IrDA
frame to user land and the cir device is for consumer Ir (remote controls).

This code is only partially finished, but the irframe device works (given
a low level driver for the actual IrDA device).
2001-12-02 10:44:43 +00:00
gmcgarry
adb908503d Add identifiers for HP devices. 2001-12-02 01:17:51 +00:00
ross
43fe22fed0 Revert previous; the _e003U definition is used elsewhere. 2001-12-02 01:04:26 +00:00
bjh21
15d94a4c59 On a VT100, the "scanline 5" character is also used for box drawing, so
represent it as U+2500 (BOX DRAWINGS LIGHT HORIZONTAL).  This makes NetHack
DECgraphics mode work properly on a wscons console using an IBM-encoded font.
2001-12-01 16:07:58 +00:00
jdolecek
c65c74ab28 regenerate (allocate identifier for NCR 53c90) 2001-12-01 10:44:35 +00:00
jdolecek
8272a293b7 allocate identifier for NCR 53C90 2001-12-01 10:43:36 +00:00
jdolecek
4b334401ca Nonworking NCR 53c90 attachment. I don't get any interrupts from
the device yet, need to find real NCR53c90 docs to figure out what's wrong.
2001-12-01 10:42:38 +00:00
enami
e69c410de5 Shorten wmesg so that they can be distinguished in ps/top output. 2001-12-01 09:42:39 +00:00
enami
b56cddb826 Fix null pointer dereference when EHCI_DEBUG is defined (and
debug is enabled).
2001-12-01 09:39:32 +00:00
bouyer
c6c2c476eb Hum, no need to print a message each time we're waiting for the drive. 2001-12-01 00:05:04 +00:00
bouyer
e6922f82d6 Various quirks for the ATAPI OnStream DI-30, mostly from the FreeBSD driver.
Many thanks to Chris Pinnock for giving me remote access to his hardware.
2001-12-01 00:03:45 +00:00
bouyer
cd8d64fe2b For ATAPI tape drives, poll for DSC (using a callout), to get the real
status of the command, and make sure the drive is ready for the next one.
2001-12-01 00:00:29 +00:00
augustss
2781ac8e07 Regen. 2001-11-30 13:41:17 +00:00
augustss
a287e24799 Add new devices. From URA Hiroshi in PR 14790. 2001-11-30 13:41:00 +00:00
thorpej
33bfd7be53 Fix typo in copyright notice. 2001-11-29 17:15:44 +00:00
wiz
e0492a661d Update note about ioctl tsleep error with error report. 2001-11-29 15:01:19 +00:00