takemura
3c9d9276dc
Add new powerhook argument values, PWR_SOFTSUSPEND, PWR_SOFTSTANDBY and
...
PWR_SOFTRESUME. Apm calls powerhook with the values in normal interrupt
priority level while others are protected with splhigh().
2000-11-26 11:08:57 +00:00
soren
290a66c213
Reduce probe noise.
2000-11-21 05:23:37 +00:00
sommerfeld
acc196c4a9
Initialize ring buffer pointers when the ring buffer is allocated.
...
(comsoft() can be invoked before comopen() on serial consoles; a character
received before the console is opened "for real" can result in a fatal trap
unless the ring buffer pointers are initialized early)
2000-11-18 15:46:23 +00:00
bouyer
42681a6a9f
Supports ETHERCAP_VLAN_MTU. Tested on sbus hme on Ultra/1.
...
Thanks to Andrei Petrov for the hint !
2000-11-17 19:08:00 +00:00
thorpej
b84f740be0
Move bpfattach()/bpfdetach() calls into ether_ifattach()/ether_ifdetach().
2000-11-15 01:02:11 +00:00
thorpej
60f33f91c2
Pull in <uvm/uvm_extern.h>
2000-11-14 18:35:10 +00:00
thorpej
275539f03c
NBPG -> PAGE_SIZE
2000-11-14 18:21:00 +00:00
pk
4c54ce2034
Define ncr53c9x_ioctl() and use it to start sync negotiation.
2000-11-13 15:24:22 +00:00
pk
ad9bda9339
Change `nvram size' data type to `bus_size_t'.
2000-11-11 11:59:42 +00:00
pk
035ceca5b2
Add note about time-of-day and interval timer programming on this chip
...
are combined into the same (write-only!) control register.
2000-11-11 11:18:07 +00:00
pk
526def8fd1
Add a function to retrieve the size of the on-chip NVRAM area.
2000-11-11 11:03:31 +00:00
eeh
faa5920bd2
Use the MI console magic sequence framework.
2000-11-08 23:13:03 +00:00
ad
142ab5b1ec
Move lsu stuff to more logical locations, and push queueing into the lsu
...
driver.
2000-11-08 19:20:33 +00:00
wrstuden
88cbfbe36d
Move guts of pciide_print_modes() to wdc_print_modes() so that non-pciide
...
wdc drivers (like macppc's obio IDE interface) can use it. Also add
support to both wd attach line and to wdc_print_modes() to print
Ultra/{33,66,100} for respective UDMA modes (From Manuel Bouyer).
2000-11-08 17:57:36 +00:00
thorpej
d764c4d540
One more fix to multicast hash computation. Submitter confirms that
...
with this fix, multicast does indeed work properly on the EPIC.
From Zdenek Salvet <salvet@ics.muni.cz>.
2000-11-08 15:20:29 +00:00
chs
b6b3ee8657
remove what looks to be a bit of leftover debug code.
2000-11-05 23:00:10 +00:00
thorpej
aac73109ae
Feh, fix st00p1d braino in last.
2000-11-05 05:41:25 +00:00
scw
3b5fce6c46
Invert the sense of i82586_init()'s return value so that
...
it matches what ether_ioctl() expects.
2000-11-04 19:48:38 +00:00
veego
232ac6b3d1
Print the vendor and chip id in the DPRINTF with 0x%x and not just %d.
2000-11-04 18:28:19 +00:00
thorpej
05d5f37522
Shadow the AC'97 codec registers. This adds two capabilities:
...
* support devices that crash when reading the codec registers; a flags
interface is added to the host interface and one flag is defined
(AC97_HOST_DONT_READ).
* new API (restore_ports) for restoring the user's settings. This
can be useful after an APM resume after a suspend to disk.
From OpenBSD.
2000-11-04 08:07:14 +00:00
thorpej
0bb6525f5b
Add some more codec IDs. From OpenBSD.
2000-11-04 05:45:57 +00:00
tsutsui
39355e9743
Make this compilie with LANCE_REVC_BUG.
2000-11-03 06:21:32 +00:00
tsutsui
d952450835
Wrap function declaration with "#ifndef sun3/#endif"
...
because sun3 does not have bus_space(9) support and
it have not switched to MI intersil7170 driver.
XXX We should split this into intersil7170{reg,var}.h ?
2000-11-03 05:23:07 +00:00
bjh21
930c4cf062
First attempt at multicast stuff. I suspect it doesn't work.
...
Use ether_ioctl -- saves 300 bytes of text.
2000-11-03 00:25:36 +00:00
bjh21
42e564ed45
Remove unnecessary includes.
...
Add a compiled-in RCSID.
2000-11-02 21:56:46 +00:00
bjh21
13234acd0f
Convert to using ether_ioctl().
...
G/C huge swathes of unused code and outdated comments.
2000-11-02 21:42:41 +00:00
eeh
2a860a3de9
Adapt to the new line discipline scheme.
2000-11-01 23:54:57 +00:00
eeh
f9a51c7b15
Clean up a #define that doesn't belong. Oops. That's what I get for
...
working this late.
2000-10-31 08:06:14 +00:00
eeh
37486bb837
Get the bpp driver to work properly.
2000-10-31 06:32:06 +00:00
mjl
a7fcd8b686
Fix hanging token ring when data size is multiple of 514, using
...
patch in PR/11316 by YAMAMOTO Takashi.
This fixes random hangs I experienced, and probably also
remedies PR/11300 and PR/9321.
2000-10-31 01:22:08 +00:00
bouyer
fc92601259
Fixes related to QUEUE FULL status:
...
- move status handling in siop_scsicmd_end(), it's better than in siop_intr()
- define 2 internal SIOP status, for "no status reported by device" and
reset condition
- add a list of "urgent" command, to be executed before the list of command
queued the normal way; this is used for command which got aborted
by a QUEUE FULL and have to be requeued in order.
- Don't accept to send a Q_TAG message not immediatly folowing a IDENTIFY
2000-10-23 23:18:10 +00:00
bouyer
7777f61cbe
Rearrange for script changes (scheduler core in main script, command part
...
of the scheduler in command table).
Add tagged command queuing support.
2000-10-23 14:56:16 +00:00
onoe
644aa13a51
Fixed the value of TULIPF_DBO; which was accidentaly shared with the same
...
value of TULIPF_BLE. Pointed out by Enami-san.
2000-10-23 04:05:21 +00:00
bouyer
2ebf1a0cd0
Ops, sync the script DMA map when the script RAM *don't* exists.
2000-10-21 13:56:17 +00:00
bouyer
e999ecae48
Support ETHERCAP_VLAN_MTU. Tested on a sparc 2 with:
...
le0 at sbus0 slot 0 offset 0xc00000 level 5: address 00:00:3b:86:19:92
le0: 8 receive buffers, 2 transmit buffers
2000-10-20 09:40:26 +00:00
mrg
0c6aa8d3ed
ensure DMA mappings are not mapped streamable. fixes ethernet problems on
...
ultrasparc sbus class machines. from eeh.
2000-10-20 06:08:02 +00:00
ad
67fe5fbbb4
Update for lsu; untested.
2000-10-19 14:28:46 +00:00
bouyer
d239df5374
Adapt for script change: don't assume Ent_lun_switch_entry == 0
2000-10-19 07:22:06 +00:00
bouyer
f629a0ae67
Ops, add proper bus_dmamap_sync() calls for reselect switch operations.
2000-10-18 20:06:54 +00:00
bouyer
9d3f5d7fbd
Adapt for new lun switch script.
...
Implement SCBUSACCEL ioctl.
Snapshot of work in progress on tagged queuing: we can send/receive
queue tag messages. Infrastructure to manage multiple commands per
devices not here yet.
2000-10-18 17:06:52 +00:00
bouyer
9836ff3913
Looks like frame size isn't checked; just say we can do VLAN MTU.
...
Tested with a SMC9432TX.
2000-10-18 16:49:13 +00:00
bouyer
f87b1573c3
Support ETHERCAP_VLAN_MTU by ignoring the EX_UPD_ERROR and EX_UPD_OVERSIZED
...
status bits. Tested with a 3c905-TX.
2000-10-17 16:16:52 +00:00
bouyer
5cc13a273b
Support ETHERCAP_VLAN_MTU. It seems the chip doesn't check the frame size.
...
Tested with a NetVin 5000 and a WD8013EBT.
2000-10-17 16:14:42 +00:00
mjacob
c64069308b
Make changes relevant to changes in WWN defaults.
...
Also fix egregious bug where we would never decrement
the islocked recursion counter. I guess this means
that we don't recurse on this platform! All of this should
go away when we have real lock primitives to use in drivers.
2000-10-16 05:18:15 +00:00
mjacob
c7c2783178
Change some of the WWN macros- eliminate PORT_FROM_NODE_WWN and make
...
sure we have a DEFAULT_{PORT,NODE}WWN and ISP_{NODE,PORT}WWN macro
as a requirement for all platforms.
2000-10-16 05:16:56 +00:00
mjacob
ffdbddbd79
Add in commented-out hiwater measurement.
...
Remove egregious older bug which had us refusing to log into
fabric devices unless they were NL ports. Whuff.
2000-10-16 05:15:55 +00:00
mjacob
298ec0ecd9
Clarify/cleanup how node and port names are derived from nvram. Remove
...
clause 2 of licence. Remember to print initiator ID (LOGINFO level).
2000-10-16 05:15:05 +00:00
thorpej
4318834442
Don't trim off the FCS, pass it up.
2000-10-15 19:56:31 +00:00
bjh21
83666f01fa
Shuffle printfs around so they look right when we've got a drive attached.
2000-10-14 23:45:57 +00:00
matt
b885772956
The input packet has the FCS attached to set M_HASFCS before passing up.
...
Revove eh = ... since it's no longer used.
2000-10-14 20:06:02 +00:00
thorpej
2198741306
Use ether_ioctl().
2000-10-11 16:57:45 +00:00
onoe
fcde56c9ba
Add flags to indicate that tlp_init() should set some more BUSMODE bits.
...
TULIPF_BLE /* data is big endian */
TULIPF_DBO /* descriptor is big endian */
These setting is required for Big-endian bus front-end (such as APbus for
newsmips) to work with tulip. Also,
sc_maxburst
member is added to the tulip_softc to limit the maximum burst length.
This member defaults to zero which means no restriction for burst length.
2000-10-11 14:59:52 +00:00
itojun
b69ea2a63d
make it work right on non-32bit arch. from kjc@csl.sony.co.jp
2000-10-10 10:15:00 +00:00
enami
db6fba6bdf
Move inclusion of rnd.h and sys/rnd.h from tulip.c to tulipvar.h.
2000-10-09 14:31:01 +00:00
enami
ca88e2b6bd
Make tulip a random source.
2000-10-09 12:54:28 +00:00
nathanw
34f3869cdc
Change int->bus_addr_t in com_kgdb_attach() prototype.
...
Compiles again with KGDB enabled.
2000-10-06 21:12:01 +00:00
bouyer
f6bf6762ab
Ops, disable debugging messages.
2000-10-06 20:07:10 +00:00
bouyer
171adcf634
Fix recurent typo: shed->sched
2000-10-06 16:39:04 +00:00
bouyer
e353a6d9b2
Adapt for reselect handling from the script. While here, fix typo
...
(SIOP_SCXFER -> SIOP_SXFER).
2000-10-06 16:35:13 +00:00
bouyer
2e6cb6a878
When 802.1Q MTU, we have to ignore the Frame Too Long errors, and there's no
...
need to disable RWT and JAB.
2000-10-05 07:22:43 +00:00
tsutsui
d11ef545cd
Enable sanity checks in mk48txx_gettime().
...
(Many news68k have dead NVRAM.)
2000-10-04 17:00:45 +00:00
thorpej
5fcde4924f
Support ETHERCAP_VLAN_MTU by igorning Receive Watchdog and Transmit Jabber
...
errors if VLANs are configured on the interface.
2000-10-03 23:35:55 +00:00
thorpej
cbfe7605c9
Support ETHERCAP_VLAN_MTU by doing extra error checking upon packet
...
reception and saving other "bad frames" (i.e. ones that are larger
than the standard Ethernet frame length) if we have VLANs configured
on the interface.
2000-10-03 23:35:02 +00:00
simonb
5d4fa9b0ce
Revert rev 1.31 of bha.c (and associtated changes in the headers and
...
config glue files).
Fixes PR kern/9841. Tested by Tracy J. Di Marco White with a bt948
and 6 disks.
2000-10-03 14:07:36 +00:00
tsutsui
91959d389e
Typo in comment.
2000-10-03 13:54:02 +00:00
tsutsui
33e8ebeef3
1970 -> POSIX_BASE_YEAR
2000-10-03 13:52:39 +00:00
thorpej
7edd5d54bc
Add support for the ADMtek AN983 and AN985.
2000-10-03 04:32:00 +00:00
itojun
1af3d80bce
fix compilation without INET.
2000-10-02 03:53:07 +00:00
thorpej
7ca3fb9ef0
Move the check for "promisc + unicast + not for us" into ether_input(),
...
and change Ethernet drivers to always pass all received frames to
ether_input() (with a few exceptions, which are documented in the
code).
2000-10-01 23:32:39 +00:00
tsutsui
710c43c745
6 -> ETHER_ADDR_LEN
2000-09-28 10:56:57 +00:00
tsutsui
ab9b015dce
6 -> ETHER_ADDR_LEN
2000-09-28 10:10:14 +00:00
sommerfeld
91178eae70
Add missing '&& defined(COM_MPLOCK)'
2000-09-26 14:12:42 +00:00
enami
d52ba1b85f
Fix merge lossage in disabled code.
2000-09-25 01:07:25 +00:00
jdolecek
5eb24d5dd0
am7990[0]_intr(): only print the "entering with isr=XX" debug message
...
if compiled with LEDEBUG > 1
2000-09-24 18:37:22 +00:00
jdolecek
5fea96167f
use new generic bootverbose instead of local definition
2000-09-24 12:37:03 +00:00
sommerfeld
6a71867356
Add `COM_MPLOCK' option to use a device-instance-specific spinlocks
...
when running at splserial(). This is a temporary measure (until
there's a MP-safe interrupt handling structure); until then, it should
be used when MULTIPROCESSOR and IPL_SERIAL > IPL_SCHED.
2000-09-23 17:17:11 +00:00
bjh21
a48f581877
Substantial overhaul, factoring out of common code, removal of redundancy
...
and general cleanup. Still not a beautiful driver, but one I'd be willing to
introduce to my parents now.
2000-09-23 15:13:02 +00:00
bjh21
65c1db338c
paddr_t -> bus_addr_t in prototypes too.
2000-09-23 12:08:16 +00:00
eeh
d651adf44a
paddr_t -> bus_addr_t.
2000-09-22 14:46:38 +00:00
soren
cf3c3f9410
Rename to match Ben's naming scheme.
2000-09-22 05:48:50 +00:00
eeh
56cf963264
Support for SPARC machines with `su' devices.
2000-09-21 23:27:32 +00:00
bjh21
f3ef35c447
Add rudimentary 80C04 support (basically saying "Oh look, an 80C04!").
...
Move printing the initial ":" into the board driver, like i82586.c does.
Don't bother printing the amount of RAM, as it's always 64 KB.
2000-09-21 22:20:38 +00:00
fvdl
c5d8401866
Add support for the 3c555, 556 and 556B MiniPCI cards. Based on the
...
cardbus code and the FreeBSD xl driver.
2000-09-19 01:15:06 +00:00
bjh21
40aba7cd4d
Split the arm26 Ether3 (ea) driver into an MI driver for the SEEQ 8005 chip,
...
and a front-end driver for the Ether3. Only semantic change is to remove
ea_claimirq() and ea_releaseirq() on the grounds that the seem too spurious
to warrant a callback to the front-end.
2000-09-18 20:51:14 +00:00
toshii
faf55ac40c
Change tiocm_to_{com,zs}'s second argument to u_long to match with
...
the type in their caller.
2000-09-17 22:07:39 +00:00
drochner
a960881851
-make the default screentype override less invasive, call it
...
VGA_CONSOLE_SCREENTYPE because the screen types are hardware specific
and make it affect the console only (no need to change runtime
behaviour), don't call vga_setscreentype() unless necessary (to avoid
trouble with strange hardware - PR kern/11025)
-some beginnings of ISO-7 (greek) font support
2000-09-15 14:13:01 +00:00
lukem
6439b28202
* rename vga_stdscreen* -> vga_25lscreen*
...
* in vga_init(), set the screen type to WSCONS_DEFAULT_TYPE, which defaults
to "80x25".
XXX: the code currently makes no attempt to ensure that a font
with the appropriate width & height is available, effectively
limiting this default to either "80x25" or "80x24" at this
time.
* make wsdisplay_screentype_pick() non static, so that vga_init() can use it
2000-09-10 11:44:13 +00:00
ad
237007cd69
- Set CCB_ACTIVE flag in all cases when DIAGNOSTIC is defined.
...
- Correct arguments to bus_dmamap_create().
2000-09-08 12:16:17 +00:00
thorpej
e79103cb0a
Cast the arg to vtophys() to vaddr_t.
2000-09-06 18:48:36 +00:00
eeh
0d01e04003
Add support for write protecting clock registers.
2000-09-01 19:04:49 +00:00
drochner
641326ee44
-fix multicast filter programming
...
-support access to MII_ANER too for completeness
-remove some hacks which disappeared in FreeBSD if_rl.c
rev. 1.25 (Aug 31 14:45:49 1999)
(the driver could need more updating, but this is what I've tested
for months)
2000-09-01 15:07:23 +00:00
ad
f729f26133
FLUSH_CACHE will not return until complete.
2000-09-01 14:17:15 +00:00
ad
40f6cd2b96
The `cac' driver now frees CCBs on our behalf.
2000-09-01 12:23:57 +00:00
ad
671d7f91ae
- Interface cleanup. static, const in places.
...
- Move convenience macros from cacreg.h to cacvar.h.
- Add one hardware check in DIAGNOSTIC case.
- Declare `cac_l0'.
2000-09-01 12:12:29 +00:00
ad
ac2883e218
- Interface cleanup. static, const in places.
...
- Pull in linkage useful for both PCI and EISA boards from cac_pci.c.
- cac_ccb_done() now frees the done CCB if the CCB callback completes.
- Model-specific linkage is now responsible for DMA synchronization.
- Use wakeup_one() in cac_ccb_free().
- Start synchronous commands `manually'.
- Add one hardware check in DIAGNOSTIC case.
- Improve error messages.
- Start firmware background tasks on controllers that need it.
2000-09-01 12:11:37 +00:00
ad
d8e5466776
- Move convenience macros from cacreg.h to cacvar.h.
...
- Define EISA board register set and some other magic numbers.
- Add missing elements to `struct cac_controller_info'.
2000-09-01 12:10:21 +00:00
haya
ea9ef4ff69
Correct LED polarity bit. This bit and PHY power bit should be
...
defined in elinkxlreg.h.
2000-08-31 08:42:29 +00:00
haya
25147761ff
Add support 3C[CX]FE575CT.
2000-08-29 08:54:50 +00:00
mjacob
37c83e1340
fix some missing initializations
2000-08-27 21:43:26 +00:00
haya
0e2c6c0cc1
Access on ELINK_W3_INTERNAL_CONFIG register with 32-bit mode. Remove
...
16-bit access code. This register is 32-bit. 16-bit access with the
register causes data inconsistency (especially for CardBus cards).
2000-08-25 09:01:59 +00:00