Commit Graph

2414 Commits

Author SHA1 Message Date
enami 1b4cef2087 Add prescaler bit constant (missed in previous commit). 2001-09-04 01:33:14 +00:00
drochner 09accd52c0 manage fonts through the wsfont framework, which allows to use both
compiled-in or runtime loaded fonts,
keep font pointers in a LRU queue and load into the adapter on demand,
 so we can have more fonts in use than physical font slots

CAUTION: font loading through the wsdisplay device directly into the
adapter doesn't work anymore!
2001-09-03 17:34:07 +00:00
mjacob 6bb9f4a949 Add support for 2 Gigabit cards (2300/2312). This necessitated a change
in how interrupts are down- the 23XX has not only a different place to check
for an interrupt, but unlike all other QLogic cards, you have to read the
status as a 32 bit word- not 16 bit words. Rather than have device specific
functions as called from the core module (in isp_intr), it makes more sense
to have the platform/bus modules do the gruntwork of splitting out the
isr, semaphore register and the first outgoing mailbox register (if needed)
*prior* to calling isp_intr (if calling isp_intr is necessary at all).
2001-09-01 07:12:23 +00:00
briggs 665cc59e75 Ensure that data accessed by the ADW driver in memory is in
little-endian byte-order.  This should work out to be a no-op
for LE systems, and allows BE systems to use the board.

Tested on PPC, reviewed by Dante.

NOTE: The board/microcode does have a BIG_ENDIAN mode of operation,
but it's not well-documented.  That might be interesting to investigate
at some point in the future, though.
2001-08-29 17:25:03 +00:00
enami 97e7cd9cf9 For hayes esp card, set prescaler if specified rate is grater than 115200. 2001-08-27 14:27:01 +00:00
thorpej 6621bd5a97 More useful definitions for CSR80. 2001-08-24 05:04:40 +00:00
thorpej 0f89153491 Oops, TMD/RMD byte count masks were one bit shy (and it makes a big
difference when the value in the field is actually the two's complement
of the buffer length).
2001-08-24 00:16:25 +00:00
simonb dc0e4c0679 Cosmetic cleanups:
- cominit() is local to com.c, remove prototype from comvar.h.
  - Don't prototype comstop(), cdev_decl(com) does this.
  - Don't use a block device switch table declaration(!).
  - No need to include "com.h".
2001-08-22 12:44:10 +00:00
thorpej d987b42429 More PCnet-PCI/ILACC bits. 2001-08-21 16:39:06 +00:00
thorpej 8b72cec4d8 Add some more PCnet-PCI registers. 2001-08-21 16:37:38 +00:00
thorpej 04a394787e Oops, the "auto" capability was getting masked off by mistake.
Fixes a panic reported by Chuck Silvers.
2001-08-20 20:22:53 +00:00
wiz c52d355d71 "wierd" is weird. 2001-08-20 12:20:01 +00:00
wiz 1e378c4c12 precede, not preceed. 2001-08-20 12:00:46 +00:00
wiz f33f8d5e61 Succeed has two 'c's. 2001-08-20 11:57:34 +00:00
wiz 0f95e3da3c precede, not preceed, and a whitespace fix. 2001-08-20 11:57:02 +00:00
itojun ffc3e18ad0 typo 2001-08-20 02:07:27 +00:00
thorpej 173f6058ab Add Chip ID register values for various AMD PCnet parts. 2001-08-18 21:16:34 +00:00
fredette 1094f3c8dc When asked to set the transfer mode, just call back
immediately, because we don't support that.
2001-08-17 00:24:09 +00:00
wiz 5b9ecbe2eb Fix indentation in switch statement, per kern/13725 by seebs. 2001-08-16 13:37:32 +00:00
mrg 4f3eac8332 mtod() with uintptr_t, not bus_addr_t. 2001-08-14 11:57:26 +00:00
mrg c9fa7a702a add (u_long) casts for sparc64. 2001-08-14 11:55:38 +00:00
wiz a8a789da28 Space nit. kern/13712 by seebs. 2001-08-13 22:52:26 +00:00
thorpej 04ad3b5316 There is no need to use M_EOR here. 2001-08-09 11:54:32 +00:00
kanaoka 59942d00fd Fix typo in a message. 2001-08-07 02:59:53 +00:00
enami 4977f2fb2d Advertize pause capability (802.3x flow control) to peer. 2001-08-06 09:51:40 +00:00
jdolecek 7810c0591b Allow max. MAXPHYS sized mu_datasize for user command.
Reviewed by Andrew Doran <ad@NetBSD.org>.
2001-08-05 11:11:33 +00:00
jdolecek ceb38aa743 remove unnecessary casts, make variable types consistent with the
respective wsdisplay_cmap member
no functional change, stylistic only
2001-08-05 11:09:51 +00:00
enami 97ceb61316 MII access routines for ASIX AX88190. 2001-08-04 11:38:57 +00:00
dante 26c61e2dd0 change\n\tswitch (scsiq->host_status)\nto\n\tswitch (scsiq->scsi_status)\nin adw_isr_callback() 2001-07-31 23:12:01 +00:00
jdolecek 2b7d2123cd Make console polling (cnpollc/cngetc) work on IBM PS/2 keyboard controller
using level triggered interrupts, which livelocks calling intr routine
if the data register is not read in the interrupt routine, as it's case
when polling after interrupts are enabled during boot.

Block all interrupts when polling for keypress, and modify intr routine
to read and store value from data register. The latter one is to avoid
losing a keypress when one would manage to press a key when kernel is
not in spl-guarded code section.

Tested with classic pccons, 'pcconskbd at pckbc' and 'pckbd at pckbc'
configurations, on i386.
2001-07-31 13:15:28 +00:00
tsutsui 1f1c7b96d8 Fix some comments and remove an unused define. Partially from OpenBSD. 2001-07-27 16:16:34 +00:00
tsutsui aa9c31f0c3 Pull up some changes from OpenBSD's iha.c rev 1.6:
- rename tul_* functions/variables iha_* for consistency
 - disable updating EEPROM routine, which does not work anyway
 - make iha_rate_tbl[] const
2001-07-27 15:51:14 +00:00
tsutsui 5a7161cf2a Pull up some changes from OpenBSD's iha.c rev 1.5:
- minor code cleanups
 - rename some functions for better consistensy/clarity
 - consolidate extended message generation into new function
 - a couple of minor code clarifications to eliminate extra return
   statements and make absolutely sure actscb is NULL during a reselect
2001-07-27 15:10:56 +00:00
thorpej fe97433fcd All CORKSCREWs have MII. 2001-07-27 02:33:34 +00:00
wiz e11d04474c issueing -> issuing 2001-07-26 22:55:12 +00:00
jdolecek 528ab39cef make local variable 'len' in wi_set_nwkey() size_t (hence unsigned)
this one is merely cosmetic, no functional change
2001-07-26 19:46:01 +00:00
jdolecek b834e97632 make local variable 'len' in awi_wep_setnkey() size_t (hence unsigned)
this one is merely cosmetic, no functional change
2001-07-26 19:40:59 +00:00
tsutsui 5309850228 Fix timeout overflow caused by "scsictl format" on machines HZ==100. 2001-07-26 15:51:04 +00:00
ad 3b6c996d19 - Stop the system drive status check when re-configuring in order to
avoid a issuing a possibly spurious warning.
- Squash some nits.
2001-07-26 12:38:03 +00:00
kanaoka be5153a923 - Increase Early TX threshold if underrun occurred. 2001-07-25 09:57:31 +00:00
jdolecek 000f85917b Since ~all pckbc_poll_data1() callers had the appropriate pckbc
tag handy and we are going to need more of it in pckbc_poll_data1() soon,
change pckbc_poll_data1() to accept it as first arg. iot, ioh_d, ioh_c are
no longer passed separately. Use fabricated pckbc tag for calls from
arch/arc/jazz/pckbc_jazzio.c and dev/isa/pckbc_isa.c.
2001-07-23 21:03:19 +00:00
thorpej 13dab3bfa7 Make sure to initialize the all Rx descriptors properly in *_init()
even if mbufs for them are already allocated.
2001-07-23 17:20:03 +00:00
thorpej a7dc1c1b01 Some whitespace cleanup. 2001-07-23 17:08:18 +00:00
tsutsui 2f456b8f00 Make sure to initialize the all Rx descriptors properly in sonic_init()
even if mbuf for them are already allocated.
This fixes "receive descriptor exhausted" errors.
2001-07-23 16:33:48 +00:00
wiz a9356936b4 seperate -> separate 2001-07-22 13:33:58 +00:00
thorpej 7859dd206a The EEPROM registers/bits are different on the Corkscrew (3c515). Adjust
for this.
2001-07-20 05:44:48 +00:00
thorpej 9bf4afa0b6 Add the ISA Bridge ASIC registers found on the Corkscrew (3c515). 2001-07-20 05:43:11 +00:00
thorpej 623f83a793 Use BUS_DMA_READ and BUS_DMA_WRITE in some obvious places. 2001-07-19 16:25:23 +00:00
onoe 69b6def907 Do not copy first keys into four key entries; the bug was introduced in 1.17 2001-07-18 02:06:44 +00:00
fredette 047e3dd5d8 When reporting an ICR value, use bitmask_snprintf to
give a human-readable description of the value.
2001-07-15 16:32:40 +00:00