Commit Graph

3396 Commits

Author SHA1 Message Date
bouyer
24a60f635a Hum the "VT82C595 (Apollo VP2) Host-PCI Bridge" has 2 devices entries
(in FreeBSD too). Make it VT82C595 and VT82C595_2.
1998-06-15 19:50:37 +00:00
bouyer
8421873e93 Regen. 1998-06-15 19:35:31 +00:00
bouyer
b1aab68805 Add some VIA tech. products. 1998-06-15 19:31:46 +00:00
drochner
e17c765503 prepare for VT100 emulation 1998-06-15 17:51:56 +00:00
drochner
bd3b88b6a6 Move the translation of keypad and function keys into the realm of the
terminal emulation. For this, change the interface to wsdisplay_kbdinput()
to take a "keysym_t" as argument. From there, the code is handed to the
appropriate emulation module via a new entry point: "translate".
Nuke the ioctls dealing with global assignment of character sequences
to keypad/function keys.
The "sun" emulation works much better now!
1998-06-15 17:48:32 +00:00
drochner
e96a163c22 #define NUL 0 -- isn't that great? 1998-06-15 17:38:39 +00:00
drochner
7560f4c5d7 Fix broken pointer arithmetic.
Being here, add hooks for the highly-desired-but-not-yet-done
vt100 emulation.
1998-06-15 17:10:37 +00:00
bouyer
eeb09bb8c8 Treat OSCIOCIDENTIFY just as SCIOCIDENTIFY regarding permissions, don't
require the file descriptor to be open read/write. Fix PR kern/5592
from John F. Woods.
1998-06-15 08:16:01 +00:00
ragge
a4d0eae36b Add catch function for keyboard. 1998-06-14 11:52:35 +00:00
drochner
b45b8e0fc0 clean up if a controlling process exits while a switch is in progress,
initialize the flag used for keeping track of this
1998-06-13 14:36:32 +00:00
drochner
61edae3ba0 fix initialization in non-console case 1998-06-13 14:28:50 +00:00
cgd
651b44e211 Rework the way kernel include files are installed. In the new method,
as with user-land programs, include files are installed by each directory
in the tree that has includes to install.  (This allows more flexibility
as to what gets installed, makes 'partial installs' easier, and gives us
more options as to which machines' includes get installed at any given
time.)  The old SYS_INCLUDES={symlinks,copies} behaviours are _both_
still supported, though at least one bug in the 'symlinks' case is
fixed by this change.  Include files can't be build before installation,
so directories that have includes as targets (e.g. dev/pci) have to move
those targets into a different Makefile.
1998-06-12 23:22:30 +00:00
drochner
08f2cdd7c4 clean up vga_isa_match() - always return "2" on success to make the
driver win over "pcdisplay"
1998-06-12 18:45:48 +00:00
drochner
96840772f5 reserve the VGA BIOS area (but don't worry if it fails) 1998-06-12 18:41:01 +00:00
drochner
ad793db324 access the "raw keyboard" flag inside spltty() to make sure there is
no screen switch in between
1998-06-12 18:15:27 +00:00
drochner
107df2472d add options for new compatibility stuff, add wsdisplay_compat_usl.c 1998-06-11 22:16:27 +00:00
drochner
68891be537 implement a way to get raw keyboard data (for X) 1998-06-11 22:15:14 +00:00
drochner
0aa10dad6b Add calls to process / VT synchronization functions (as provided in
wsdisplay_compat_usl.c).
add "sleeping ok" argument to wsdisplay_switch()
implement a way to get raw keyboard data (for X)
some cleanup
1998-06-11 22:13:52 +00:00
drochner
95ce034ada add "sleeping ok" argument to wsdisplay_switch()
implement a way to get raw keyboard data (for X)
1998-06-11 22:08:57 +00:00
drochner
c90fa98f4a add "sleeping ok" argument to wsdisplay_switch() 1998-06-11 22:03:15 +00:00
drochner
8fb1d35ab5 Implement the VT access and keyboard control ioctl()s needed for
compatibility to PCVT, syscons and the Linux console.
1998-06-11 22:00:04 +00:00
thorpej
c5a827e7f6 Per leo@netbsd.org: Don't call isa_dmainit() if NISADMA == 0. 1998-06-11 08:43:01 +00:00
leo
d30382ffb4 Don't call isa_dmainit() when NISADMA == 0. 1998-06-11 08:29:33 +00:00
thorpej
ab7bc85ff7 Pull in <sys/timepps.h> here so that other things that include comvar.h
will compile.
1998-06-11 02:01:58 +00:00
tv
fe2278980b Missing include <sys/systm.h>. 1998-06-10 22:58:05 +00:00
thorpej
b121e9e772 Add a shutdown hook for SCSI-2 and higher disks that issues a SYNCHRONIZE CACHE
operation with address 0 length 0, which, according to the SCSI-2 spec, should
be interpreted as "synchronize all remaining blocks beginning at address 0".
1998-06-10 22:17:39 +00:00
tv
209848d4ab Change dev' -> self' in ofisaattach(), compile error 1998-06-10 16:48:21 +00:00
jonathan
bbc2d1522a PPS support from April, reworked and extended to match the PPS-API
Internet Draft (draft-mogul-pps-api-02.txt).
1998-06-10 12:06:23 +00:00
bouyer
de7be831ac Make this compile with the recent ISA DMA changes. 1998-06-10 10:24:13 +00:00
thorpej
4ad627c09b Do the unaligned buffer fixup without copying data, more-or-less lifted
from the Shark CS8900 driver.
1998-06-10 01:15:50 +00:00
thorpej
a3db0f915e Define the SYNCHRONIZE CACHE command. 1998-06-09 19:03:24 +00:00
thorpej
ab548fbb40 Remove the PCI-ISA bridge callback mechanism; it's no longer needed. 1998-06-09 18:48:41 +00:00
thorpej
be62e9cb1b Nuke __BROKEN_INDIRECT_CONFIG. 1998-06-09 07:35:06 +00:00
thorpej
5bc2217a49 Nuke __BROKEN_INDIRECT_CONFIG. 1998-06-09 07:24:55 +00:00
thorpej
680a3d77f4 Add isa_dma{freeze,thaw}(), used to temporarily stop and then restart
all ISA DMA.  Needed by e.g. the SmartCard reader for Sharks.
1998-06-09 01:04:17 +00:00
thorpej
5f97398507 Adjust for changes to the ISA DMA API. 1998-06-09 00:05:44 +00:00
thorpej
129eab3152 Adjust for the changes to the ISA DMA API. 1998-06-09 00:05:19 +00:00
thorpej
e290abfe34 Initialize DMA state when we attach the ofisa bus. 1998-06-09 00:02:43 +00:00
thorpej
ff76b8e96b Change the ISA DMA API to take an isa_chipset_tag_t rather than
a struct device * corresponding to the ISA bus device.  The ISA DMA
controller driver functions have been renamed and now take a struct
isa_dma_state *, and are called indirectly by machine-dependent code
which provides the DMA state.

These changes allow e.g. `ofisa' (the OpenFirmware configuration
mechanism for the ISA bus, used by e.g. Sharks) to use the MI ISA
DMA controller code.
1998-06-09 00:00:21 +00:00
pk
914f235803 Fix the obvious bogons reported in PR#5552.
The problem in the memory size probe is still pending.
1998-06-08 12:19:46 +00:00
thorpej
e41f7ca1b8 Make this build w/ EGCS. 1998-06-08 07:11:51 +00:00
thorpej
e12c6ddaf2 No need for an explicitly-sized type for sc_flags. 1998-06-08 07:06:41 +00:00
thorpej
ea3a1d9c44 Nuke __BROKEN_INDIRECT_CONFIG. 1998-06-08 06:55:54 +00:00
pk
3f6155e843 Update from Iain for the parallel port stuff. 1998-06-07 21:14:17 +00:00
sommerfe
2b00a47b9e Add ISAPnP attachment for PCMCIA bus controller; reorganize ISA
attachment to let it share code with PnP attachment.
1998-06-07 18:28:31 +00:00
fair
b91a2393c1 the AM7990 is a controller, not a "card"; repair a misleading diagnostic. 1998-06-07 08:08:20 +00:00
augustss
68e0540ee9 Add an Aria sound driver.
From "R. C. Dowdeswell" <elric@imrryr.org>.
1998-06-06 10:12:34 +00:00
enami
486c074973 An oversight in previous commit. 1998-06-05 03:40:07 +00:00
enami
03409c9b52 - Don't print newline until pcmcia_io_map is called; it expects to write
from middle of line.
- Use SIMPLEQ_FIRST/NEXT macros.
1998-06-05 03:26:52 +00:00
enami
f4c1a44b26 Use SIMPLEQ_FIRST/NEXT macros. 1998-06-05 03:02:31 +00:00
enami
95f9f9f48d In the function pcmcia_card_gettype:
- When there is only one pcmcia function, don't use first config
  entry to determine card type.  Instead, use the config entry
  actually used to initialize the pcmcia function if it is already
  initialized, else a card is memory-type.
- Don't put a space after cast.
- Use SIMPLEQ_FIRST/NEXT macro.
1998-06-05 02:51:17 +00:00
pk
573196b6ba Check for the ether broadcast address in promiscuous mode (PR#5527). 1998-06-04 20:35:44 +00:00
enami
98d557d09e No need to define WDDEBUG or undefine ATAPI_DEBUG_WDC here. 1998-06-04 02:46:24 +00:00
enami
770c4bfb9d Make this compile with WDDEBUG 1998-06-04 02:27:33 +00:00
enami
df385821f4 Print newline like others do when tracing wdunlock. 1998-06-04 02:25:05 +00:00
pk
062294cc8c Magma parallel port ioctls per Iain Hibbert. 1998-06-03 22:40:00 +00:00
pk
87fe4d9ea1 Update from Iain on the parallel port stuff. 1998-06-03 22:38:31 +00:00
thorpej
5852faaf84 Device driver for the SMC 83c170 Ethernet PCI Integrated Controller (EPIC/100)
used in the SMC EtherPower II.

Media control isn't yet supported, due to some MII infrastructure
problems which I hope to address soon.  This isn't a huge deal, since
the PHY defaults to auto-negotiate mode.

Also, the device just programs the multicast hash table to accept all
multicast, to avoid a hardware bug that causes the multicast address
filter to lose in 10Mb/s mode.  This bug will be fixed in a more sane
way once the media control issues are dealt with.
1998-06-02 01:29:41 +00:00
cgd
350942b30d according to the PCI 2.1 spec, the low _two_ bits of I/O BARs have
defined meaning/value other than specifying the address of the region.
(lowest bit is 1, meaning I/O space.  second-lowest bit is reserved.)
1998-06-01 17:48:13 +00:00
cgd
6e73ca754f add a PCI 'quirks' mechanism, meant to be used as the mechanism
of last resort when trying to communicate information about
bogus behaviour of PCI devices to the MI autoconfiguration code.
In general, bogus behaviour should be handled by drivers, but there
are some types of bogons which can't be addressed that way.  The
only quirk currently defined is one which indicates that the device
is multi-function even though the device's header says otherwise.
(Mmm, Intel 82371FB PCI-to-ISA Bridge (PIIX); you'd think that at least
Intel would have gotten it right...)
1998-05-31 06:07:59 +00:00
cgd
86585ca518 use the new PCI 'quirks' mechanism to help determine the number
of functions on a given device.  Also, clean up the #if 0'd
major-debugging-spew code so that it's all one piece, so that
it's a bit prettier, and so that it prints out quirk information.
1998-05-31 06:05:28 +00:00
cgd
3e3f8b7bac dd a PCI 'quirks' mechanism, meant to be used as the mechanism
of last resort when trying to communicate information about
bogus behaviour of PCI devices to the MI autoconfiguration code.
In general, bogus behaviour should be handled by drivers, but there
are some types of bogons which can't be addressed that way.  The
only quirk currently defined is one which indicates that the device
is multi-function even though the device's header says otherwise.
(Mmm, Intel 82371FB PCI-to-ISA Bridge (PIIX); you'd think that at least
Intel would have gotten it right...)
1998-05-31 06:03:44 +00:00
msaitoh
34b0df807a add some information from "PC Card standard March 1997" 1998-05-29 16:21:28 +00:00
drochner
196bb746eb Add a graphics device driver for wscons which supports legacy PC display
adapters. (minimal functionality - no virtual screens, no colors)
1998-05-28 16:51:50 +00:00
drochner
b84dbbb37c Put definitions and subroutines needed for all PC display adapters
(MGA/GCA and compatibles) into global headers / source files.
Let the VGA driver use them.
1998-05-28 16:48:40 +00:00
matt
d575ad31d0 Use PCI_REVISION and eliminate some pci_conf_reads 1998-05-28 13:51:09 +00:00
matt
769e4e6e81 Another bug fix (clear transmit done before trying to queue more transmits). 1998-05-28 03:07:49 +00:00
cgd
e3c75e1ca8 Clean up slightly, abstract pci_conf_print family's base address register
printing into a function, add a bit more pretty-printing of existing stuff.
Implement pretty-printers for type 1 and type 2 headers.  (Right now,
these are just quick stabs based on some on-line bridge docs that I have
handy on my laptop.  Mmmm, meetings.  I'll check the bits when I get
back within reach of my official docs.)
1998-05-28 02:26:00 +00:00
matt
dd77920e3e Only enable transmit done interrupts when output ring is full. 1998-05-27 14:01:02 +00:00
thorpej
0979dbf3fd Add a placeholder file to be used until the Alpha and DECstation ioasic
register descriptions can be sanely merged.
1998-05-27 05:30:13 +00:00
thorpej
f4703e1783 We're the only driver that currently needs direct access to ioasic registers. 1998-05-27 04:30:07 +00:00
matt
bd9e1be560 Add DETRA (Token Ring) Controller 1998-05-27 02:51:02 +00:00
explorer
91a483bd33 missed one constant '20' to RND_ENTROPY_THRESHOLD change 1998-05-27 01:29:13 +00:00
matt
5fb5017c94 Fix syncing of consumer block. 1998-05-27 01:17:53 +00:00
explorer
6036d56ba6 Move RND_ENTROPY_THRESHOLD to sys/rnd.h. Use sha1 rather than md5, and
release the first 96 bits of the hash directly rather than by folding.
The full 160 bit hash is mixed back into the entropy pool.  This keeps
64 bits secret to stir the pool with.
1998-05-27 00:59:14 +00:00
thorpej
5442fd5420 If we have an NCR53CF9x (indicated by the front-end by setting a flag
in the softc's new "features" word), set FSCSI bit in CFG3 if the sync
period is <= 200ns, or clear it otherwise.
1998-05-26 23:17:34 +00:00
matt
1f8a0caf0a Success! With these changes, the DEFTA now under NetBSD/pmax!! 1998-05-26 15:33:16 +00:00
augustss
a10981bdbf Fix a recording problem that occurs when the EAP chip sends its
interrupt just BEFORE the dma has finished rather than after.
1998-05-26 13:28:03 +00:00
mark
6548f40f95 Regen from pcidevs. 1998-05-25 22:32:24 +00:00
mark
910456eccf Added TriTech Microelectronics vendor ID.
Added TriTech Pyramid3D 25202 product ID.
Added Promise Ultra33 UltraDMA IDE controller product ID.
Added ALI product ID's for M1543 'Southbridge' PCI devices.
1998-05-25 22:31:11 +00:00
mark
56c82ddeda Don't make the inclusion of machine/intr.h alpha specific as other ports
require this as well.
1998-05-25 22:20:24 +00:00
mark
45dd8e3edd Define TULIP_COPY_RXDATA for arm32 as well as alpha. 1998-05-25 22:13:28 +00:00
mark
69a9a5c445 Include arm32/pci/pci_machdep.h if arm32 is defined. 1998-05-25 22:11:37 +00:00
matt
2d80e4786e Verify the driver work if PDQ_NO_BUS_DMA is defined. 1998-05-25 21:24:21 +00:00
leo
7b4e205670 Use stream methods (when available) to read/write the card memory. 1998-05-25 10:36:51 +00:00
matt
05f603434f More pmax coherency stuff. Getting close.. 1998-05-24 22:37:23 +00:00
matt
144c41e986 Fix dmamap leakages. fix transmit bug. fix receive bugs. fix mips
coherency problems.
1998-05-24 21:40:05 +00:00
drochner
f5482453a0 fix "Cursor Next Line (CNL)" (did the opposite) 1998-05-24 10:56:16 +00:00
matt
18319c0048 Changes so that these compile on NetBSD/alpha as well as NetBSD/i386. 1998-05-23 18:32:29 +00:00
ragge
b28c99b245 Fixed bug with lost characters in DDB output. 1998-05-23 12:49:30 +00:00
thorpej
492ee1399e Make it possible to build a kernel with a wscons display device but not
a wscons keyboard device.
1998-05-23 01:06:36 +00:00
thorpej
86f256633d DECstation now provides bus_space and bus_dma data structures to us. 1998-05-22 21:15:48 +00:00
matt
9eb77bf49a Change 21040 modes slightly. Prevent infinite autosense loop of 21143 that
is not connected.  Make TULIP_STS_LINFAIL only valid for chips with that
status bit defined.
1998-05-22 18:50:59 +00:00
augustss
27f70da904 Add alaw/mulaw conversion to/from 8 bit signed linear. 1998-05-22 13:05:31 +00:00
matt
cfbb5f3f21 Add bus_dma(9) support for the DEFxA FDDI driver 1998-05-21 20:44:02 +00:00
augustss
aa04459121 KNF. 1998-05-21 19:17:50 +00:00
augustss
0b9ec50365 Add a newline.
KNF.
1998-05-21 19:09:28 +00:00
augustss
503014ebe7 Add missing call to isapnp_config.
Set chip_name.
KNF.
1998-05-21 19:07:10 +00:00
ragge
cd17c11c60 Support for DDB on DZ console. 1998-05-21 13:02:20 +00:00
pk
229ff62ff7 Do not assume that a parallel component is always configured.
Squash compiler warnings if MAGMA_DEBUG is on.
1998-05-20 22:08:10 +00:00
augustss
74545baf39 Add a Yamaha OPL3-SA3 driver and clean up all AD1848 drivers.
Submitted by Constantine Sapuntzakis <csapuntz@reeducation-labor.lcs.mit.edu>
and originally written for OpenBSD.
1998-05-20 16:19:41 +00:00
pk
11c8871c83 Erase spurious end-of-comment. 1998-05-20 16:06:56 +00:00
pk
9299239520 Cirrus Logic CD1190 parallel port chip definitions; from Iain Hibbert. 1998-05-20 14:47:36 +00:00
pk
9c1918e458 Add CD1400_PAR_FIFO_SIZE. 1998-05-20 00:03:11 +00:00
pk
4e62cce89a Magma SBus serial & parallel port driver from Iain Hibbert. 1998-05-19 23:58:54 +00:00
drochner
e1f67ace67 Initialize the "curattr" member of the emulation data in early console
setup -- it is used to fill empty space.
Fixes 2/3 of PR kern/5457 (Jason Thorpe).
1998-05-19 18:47:13 +00:00
augustss
54281b8662 Avoid spaces in tsleep() string. 1998-05-18 18:27:43 +00:00
cgd
9991233636 add an #if 0'd chunk which will pci_conf_print() every device (spews
lots of data, e.g. ~18k on a PCI system with few add-in devices; use
with MSGBUFSIZE=...).  Useful to have here so that people who want as
much data about the PCI configuration in a machine can get it without
having to craft their own code.  Also, clean up a few of the other
#if 0'd printfs.
1998-05-18 17:28:07 +00:00
cgd
4b0876c74b largely reimplement pci_conf_print():
* print all configuration space registers.  Then, where possible,
  interpret them.  (That is, PRESENT ALL THE DATA, then interpret it --
  don't hide data behind interpretation.  Also, when interpreting
  fields, try to print out the specific value that's being interpreted.)
* handle different header types.
* allow caller to specify a function which can interpret the
  device-dependent header and is responsible for pretty-printing it.

It spews (use 'options MSGBUFSIZE=...' 8-), but when you want the data,
you really want _all_ of it.

Still needs some cleanup and additional code (e.g. interepretation
of PCI-PCI (type 1) and PCI-Cardbus (type 2(?)) bridge headers).
1998-05-18 17:25:17 +00:00
cgd
27b21a3a47 add a PCI_HDRTYPE_TYPE() macro, to get the 'type' portion of the
headertype register (i.e., not including the 'multifunction' bit).
1998-05-18 17:17:04 +00:00
cgd
2102dd3e20 check that memory access is enabled before bothering to do the
pci_mapreg_info() call.  pci_mapreg_map() implies this check,
but code which calls pci_mapreg_info() has to check it explicitly.
Otherwise, if memory space is disabled, the driver does the wrong
thing, and tries to use memory space anyway, potentially resulting
incorrect driver operation and no useful error message.
1998-05-18 17:14:32 +00:00
ragge
4a469a9149 Split the DZ11 driver into two parts; can now use the same driver on
both unibus/qbus devices and vaxstations.
1998-05-17 18:51:13 +00:00
kml
051be14326 Correct copyright date. 1998-05-17 16:46:06 +00:00
augustss
88edb37522 Be more verbose if attaching the audio device fails. 1998-05-15 15:45:58 +00:00
tsubai
02aa1f7050 Add macppc support. 1998-05-15 12:35:06 +00:00
drochner
7bd61ed6be needed for VGA text attributes 1998-05-14 23:11:03 +00:00
augustss
07e69a32d2 Regen. 1998-05-14 21:46:53 +00:00
augustss
c3def5e349 Add another USB controller. 1998-05-14 21:45:18 +00:00
drochner
95bdb660ed Simple screen attribute handling for wscons.
The graphics device driver passes a "default attribute" for normal text
output to the wscons framework. If the emulation module needs more
attributes (for different "renditions") it can allocate them via a
callback.
For now, only the "sun" emulation makes use of it.
1998-05-14 20:49:55 +00:00
matt
1442b419df Fix alignment crashes on Alphas... 1998-05-14 18:24:00 +00:00
kml
e72782a137 Driver for Essential Communications' RoadRunner HIPPI (800 Mb/sec network)
card.  With some modification, this could probably also work for their
Gigabit Ethernet card based on the same chipset...
1998-05-14 00:04:57 +00:00
augustss
6c0386cefa Regen. 1998-05-13 15:51:36 +00:00
augustss
364c6cf250 Add OPTi OHCI USB host controller. 1998-05-13 15:50:58 +00:00
mycroft
18aa33cce5 Disable the change to check wdp_ataversion, since it's unreliable with old
devices.  (Yuck.)
1998-05-09 05:20:35 +00:00
mhitch
b3f9a74326 Fix a problem that will reboot the system with no message as to what the
problem was.  A collision between a select and reselect would leave TC
non-zero from the command-out DMA count, which could later be considered
a fatal condition, causing a reboot.  The message for that error was
only displayed with DEBUG.  Fixed by clearing TC on a reselect.  The
non-zero TC detection won't occur in this case, so unconditionally
display the message if it occurs.

Workaround for another problem that resulted from an "Illegal Command"
status from the 53c94 which would get ignored and result in a timeout
(which also reboots the system).  Added the missing check for the
illegal command status, and add the workaround of resending the "accept
message" command to the 53c94.  Correct fix will be to determine why the
message wasn't sent in the first place.  Abort if the resending the
command doesn't work.

Correctly detect a spurious interrupt and ignore it.  This was taken
from a newer Mach driver, but did not get the check converted for the
design difference between the current NetBSD driver and the Mach driver.
1998-05-08 15:39:01 +00:00
kleink
d2db996158 Fix some arithmetics lossage on typeless pointers. 1998-05-07 21:13:23 +00:00
augustss
d824266389 Remove some lint. 1998-05-06 19:21:45 +00:00
mjacob
ed8ddb6948 more info (in heavy debugging cases) to print 1998-05-05 22:14:23 +00:00
mjacob
128cb933b4 there is an (unimportant) difference between 1020 && 1020A 1998-05-05 22:10:36 +00:00
drochner
da5b8105bd Remove BROKEN_INDIRECT_CONFIG relicts. 1998-05-05 21:41:18 +00:00
thorpej
af65e69596 Add 5 more NE-2000 compatible PCI Ethernet interfaces. XXX Note that some
of these may need revision in pcidevs.
1998-05-05 17:23:08 +00:00
thorpej
e28a3f28ac Regen. 1998-05-05 17:22:20 +00:00
thorpej
7b2b6d3835 Add a few more NE-2000 compatible PCI Ethernet interfaces. XXX Some of
these may need further revision to get vendor and product names exactly
right.
1998-05-05 17:22:04 +00:00
thorpej
4626eef504 Slighly less brutal hack to deal with broken memory-mapped access of
the ThunderLAN on the TI TravelMate 5000 docking station: single it out,
and allow memory-mapped access on the Compaq products.
1998-05-05 07:17:12 +00:00
enami
2eb37a4e87 When changing power, wait enough to keep timing constraint
described in PCMCIA specification.
1998-05-05 00:37:24 +00:00
pk
6ba2c64ae6 Eliminate the degenerate loop in `ncr53c9x_intr()'. Retain the delay heuristic
it implemented under the label `shortcut:' and only use it in these
cases: (1) after successful re-relection, (2) after receiving command-complete
status, and (3) during message-in handshake.
1998-05-04 14:47:48 +00:00
pk
0d3d41fa21 Allocate SCSI message buffers in ncr53c9x_attach(), with a provision
for front-ends to override the allocation to avoid alignment
handling in their DMA engines. Note that that ncr53c9x_msgout()
can request a 1 byte DMA transfer that would be difficult to break up.
1998-05-04 11:11:24 +00:00
thorpej
4b69f3a465 The DEC RRD42 doesn't deal with LUNs very well either.
kern/5376, Simon Burge <simonb@telstra.com.au>
1998-05-04 05:56:31 +00:00
thorpej
cbaec857db Add the UMAX Astra 1200S scanner to the list of the LUN-clueless.
kern/5390, Rene Hexel <rh@vip.at>
1998-05-04 05:54:09 +00:00
thorpej
19b7ffb19f Regen. 1998-05-04 05:51:35 +00:00
thorpej
0813824005 Add STB Systems' second PCI vendor ID, and their Velocity128 AGP product.
kern/5362, Paul Goyette <paul@whooppee.com>
1998-05-04 05:51:19 +00:00
thorpej
5153af345d In pci_conf_print(), don't print a mapping register if the size is 0. 1998-05-03 19:46:15 +00:00
thorpej
93db65c28c Properly compute the region sizes in pci_conf_print(). Bug pointed out
by Chris Demetriou.
1998-05-03 19:41:33 +00:00
drochner
85c0eea04e Suppress the diagnostic printout if the keyboard controller has no
mouse port.
1998-05-03 12:04:53 +00:00
drochner
ed1653232b If the keyboard is console device, use the command byte as set by
the console initialization code.
1998-05-03 11:54:38 +00:00
drochner
e47f63efe6 Make some diagnostic output "#ifdef PCKBCDEBUG". 1998-05-03 10:02:11 +00:00
drochner
ada1b933b7 Make error reporting similar to "pckbd". 1998-05-03 10:01:00 +00:00
drochner
8669ad14fc Let keyboard probe succeed without a keyboard connected if it is used
as console input. (Previously, it did always succeed.)
(closes PR kern/5372 by Jason R Thorpe)
Make error messages cleaner and add some "#ifdef DEBUG" to reduce noise.
1998-05-03 09:57:50 +00:00
mycroft
a835c012d3 Adjust PCLKDIV by 2 to correct the output sample rate. (Unfortunately, this
isn't documented.)
Fix typo in mappage routine.
1998-05-02 08:21:10 +00:00
mycroft
fef6b0b8a3 Oops; fix typo. 1998-05-02 02:36:30 +00:00
mycroft
cfe3e5fb08 Fix reading of the master volume, and a hack that seems to make stereo output
work correctly.  (Will check the documentation as soon as I can read it.)
1998-05-02 02:34:53 +00:00
augustss
6cb1f6c5b1 Add a driver for the Ensoniq AudioPCI sound card. The driver still
needs some testing, but it seems to produce sound.  The driver was written
by me, but since I don't have the hardware the debugging and testing was
done by Andreas Gustafsson <gson@araneus.fi>, Chuck Cranor
<chuck@maria.wustl.edu>, and Phil Nelson <phil@cs.wwu.edu>.  Thanks.
1998-05-01 21:54:33 +00:00
mycroft
aa7159be03 Regen. 1998-04-30 06:18:45 +00:00
mycroft
6e626dfafc Add the Apple Bandit chip. 1998-04-30 06:18:11 +00:00
thorpej
9a25b32914 Use the symbolic name VVR_BLANK rather than a magic constant. 1998-04-29 02:23:20 +00:00
thorpej
6493eddd91 Define the contents of the Video Valid register on the TGA and TGA2. 1998-04-29 02:11:19 +00:00
thorpej
53d3aa940b Sync with recent change made to bha.c by mjacob:
Cute buglet: you can end up with zero CCBs if there were no targets
seen by the adapter. Always leave a minimum so the adapter can
finish attaching- it may be there w/o targets for a reason.
1998-04-29 01:02:44 +00:00
mjacob
1acc8b53b5 Cute buglet: you can end up with zero CCBs if there were no targets
seen by the adapter. Always leave a minimum so the adapter can
finish attaching- it may be there w/o targets for a reason.
1998-04-28 23:57:53 +00:00
augustss
df71a424d6 Change debug printing a littel again. 1998-04-28 23:19:20 +00:00
thorpej
28454023cc Add a comment about some future work. 1998-04-28 19:13:24 +00:00
thorpej
41d55197b4 In wdcintr(), add a catch-all case so that this will compile if no
children are configured.
1998-04-28 18:36:07 +00:00
thorpej
925fe63713 Fix a couple of function names used in diagnostic printfs. 1998-04-28 17:48:35 +00:00
augustss
127acabd9c Add a few more debug messages and clean up debug printing a little. 1998-04-28 09:07:12 +00:00
mycroft
0b2694152f Update copyright. 1998-04-26 06:03:23 +00:00
mycroft
eddaea2d53 In LBA mode, always use the `total capacity' count, rather than calculating
the capacity based on the c/h/s numbers.  In fact, don't use the c/h/s
numbers for much of anything.
For ATA-4 drives or later, always use LBA mode, since it's now required.

Collectively, this allows >8GB disks (like the 12GB Bigfoot) to work.
1998-04-26 05:28:23 +00:00
matt
4bca66087f Now works with the Digital Hinote Ultra Mobile Media CD-ROM 1998-04-25 17:43:27 +00:00
drochner
0652ed68a5 Initialize sc_frequency. (How could this ever work?)
Add PnP entry for USR Sportster 56k internal modem.
Remove BROKEN_INDIRECT_CONFIG.
1998-04-25 10:58:24 +00:00
pk
7bd7c58939 Fix function argument type. 1998-04-24 20:20:33 +00:00
bouyer
68096acabd From Robert V. Baron:
Compute the disk block addr at command queing time rather than exec time.
This fix a bug which could lead to data corruption on disk: when a command
was reexecuted after an error condition (from wdcunwedge), the partition
offset was re-added to the block addr, leading to a transfert at the wrong
disk block.
This should fix the problem reported by some laptop's users, where the
first disk read after a suspend/resume returned garbage.
1998-04-23 13:30:39 +00:00
bouyer
7ba46a56e0 Correct defifintion of the WDCE_MCR and WDCE_ABRT bits: they have been
inverted since the begining.
This doesn't change anything, as these bits are not used in the driver.
1998-04-23 10:37:01 +00:00
explorer
63babb7549 Ignore LUN on yet another cdrom 1998-04-23 00:38:01 +00:00
pk
84d2c38974 Set a flag during auto-configuration, so SCSI_AUTOCONF can be passed
when doing additional I/O from the scanner attach functions.
1998-04-22 19:44:18 +00:00
augustss
9663e5f689 Make probe message more consistent with usual practice.
From "Soren S. Jorvang" <soren@t.dk>.
1998-04-20 20:58:05 +00:00
drochner
5f6ca9ef93 Avoid "unused variable" warning without PCIVERBOSE.
From mynhier@cs.utk.edu (PR kern/5328).
1998-04-20 14:16:26 +00:00
hannken
3cdf7f6607 Undo change from drochner (Rev 1.4 of wsksymdef.h) and fix PR #5298 and #5299. 1998-04-20 10:47:36 +00:00
thorpej
cef633de2a Fix a fencepost in last change. 1998-04-19 22:26:31 +00:00
jonathan
b4d3bac06e pmax has IPL_ constants; Define TC_IPL_ using them until all tc
drivers are converted to use IPL_.

Commit changes to if_le_ibus.c as a child of ibus.
1998-04-19 13:04:24 +00:00
jonathan
c84f4e94d9 Copy alpha/tc/mcclock_ioasic.c (duplicated in pmax/tc/mcclock_ioasic.c)
into sys/dev/dec and split into a clockfns layer and a "middle" layer
for other DEC systems which use mcclocks with each onchip byte
register padded out to a 32-bit word.

Clone alpha/alpha/mcclock (also duplicated in pmax port) into
sys/dev/dec, and ifdef for default clockrates on pmax and alpha.

Use new machinery on pmax for ibus,ioasic attached mcclocks.
1998-04-19 07:50:25 +00:00
jonathan
558e40fb86 Remove duplicate of sys/dev/dec/clockvar.h. 1998-04-19 06:11:55 +00:00
pk
90b5c246c6 Skeleton code for the SBus expander box. 1998-04-18 19:00:17 +00:00
drochner
fb43bb5f19 Add danish keymap.
From Soren S. Jorvang (PR kern/5312).
1998-04-18 10:57:13 +00:00
drochner
13c6d27696 Fix spelling of my name.
Being here, remove BROKEN_INDIRECT_CONFIG.
1998-04-18 10:35:48 +00:00
drochner
d58832579d Fix botched DMA tag initialization. 1998-04-18 10:26:56 +00:00
drochner
302692bf8d Namespace protection: give key description table a more private name. 1998-04-18 09:51:20 +00:00
drochner
1745de275b -Set keyboard (and/or controller) to XT scancode in early console
initialzation. Closes PR port-alpha/5303 (Jason Thorpe).
-Namespace protection: give key description table a more private name.
-Make sure "struct pckbd_internal" is completely initialized.
-Improve locator comparition in probe().
-Remove BROKEN_INDIRECT_CONFIG.
1998-04-18 09:49:58 +00:00
drochner
a099e8dda5 Initialize the command byte and its shadow register in early console
setup so that the keykoard driver can deal with scancode translation
in its console initialization function.
1998-04-18 09:42:20 +00:00
drochner
928943b2ff Keep all relevant state information in a "pci_softc" so that it is
accessible at runtime (for LKMs in particular).
Remove BROKEN_INDIRECT_CONFIG.
1998-04-17 18:40:31 +00:00
thorpej
085787ddbe defopt the WSEMUL options. 1998-04-17 00:17:27 +00:00
drochner
d3067d3f3f -don't modify call arguments in place - bad for debugging
-give at least the i386 its keyboard beep back
1998-04-16 21:18:46 +00:00
drochner
d860c80512 regen 1998-04-16 19:48:14 +00:00
drochner
bfd53bac43 add 2 ATM chips, correct entry for Toshiba MIPS bridge 1998-04-16 19:46:03 +00:00
drochner
30654f3e89 Split out from if_le_isa.c - this card is quite different.
The driver is known not to work (timeout on send attempts).
1998-04-16 18:00:14 +00:00
drochner
02157092d4 Make the ISA LANCE drivers work without BROKEN_INDIRECT_CONFIG.
DEPCA is now split out into a separate driver.
Because there can be only one attachment of a device to a bus, for
each card type a separate pseudo-bus was introduced which attaches to "isa"
and where "le" attaches to.
1998-04-16 17:51:46 +00:00
drochner
10860a27c6 Don't use KS_GROUP_xxx values which have set something in the lower
8 bits. This allows to OR them with keycodes.
This is probably a workaround for namespace confusion happening else-
where (in wskbdutil.c:ksym_upcase() perhaps?), but it helps without
too much digging into the details.
1998-04-16 13:29:41 +00:00
drochner
3cc1fe831c count allocated screens correctly 1998-04-16 12:52:42 +00:00
leo
112b5de402 Use a stream method for AHC_OUTSL when possible. 1998-04-16 07:13:57 +00:00
leo
d3febbb5aa Do endian swaps where appropriate. This is currently dependent on 'BYTE_ORDER'
since the driver only supports little endian busses.
1998-04-16 07:12:43 +00:00
leo
b66dd55f59 Backout endian changes here (per discussion with Justin) and move them to
aic7xxx.c
1998-04-16 07:07:37 +00:00
drochner
ca0d504418 some attributes are now global 1998-04-15 20:29:16 +00:00
drochner
0c199c88be add MI ISA VGA and the speaker driver 1998-04-15 20:26:53 +00:00