thorpej
b84f740be0
Move bpfattach()/bpfdetach() calls into ether_ifattach()/ether_ifdetach().
2000-11-15 01:02:11 +00:00
eeh
507aaec04c
Adapt to the new line discipline scheme.
2000-11-02 00:01:44 +00:00
eeh
55fd5a2fb0
Pass along the bus frequency too, for devices that need it.
2000-11-01 06:18:45 +00:00
eeh
34ed153955
Fix warning in a debug printf.
2000-11-01 06:17:32 +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
mjacob
0a481d850d
fix SBus bursting *correctly* this time
2000-10-22 03:04:50 +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
mrg
3af567c485
rework to use bus_dmamem_map() then bus_dmamem_load(), rather than
...
bus_dmamem_load_raw() then bus_dmamem_map().
tested on SS2 and SS5 and sbus cards.
2000-10-20 05:57:50 +00:00
mjacob
cecccb23b2
quiet chatty boot messages
2000-10-17 17:39:10 +00:00
mjacob
7cc31292b3
Turn on 32 byte bursting for ISP
2000-10-16 05:13:13 +00:00
pk
aa6df7169b
yank error.
2000-09-12 19:13:30 +00:00
pk
17e5f7b17c
Declare drivers moved here from arch/sparc.
2000-08-22 21:31:16 +00:00
pk
d29f2ce630
Get tcxreg.h from the correct location.
2000-08-22 21:18:57 +00:00
pk
124d256269
Move these SBus drivers here from arch/sparc.
2000-08-20 22:27:07 +00:00
pk
5a308cf392
Split & move cgthree sbus attachment from arch/sparc.
2000-08-20 19:59:46 +00:00
pk
7857ad0b81
Move cgsix and bwtwo Sbus attach code here from arch/sparc.
2000-08-20 14:33:25 +00:00
mjacob
d8aef491c1
Add a maintenance note. Add a bus specific isp_sbus_intr function- this is
...
so we, ahem, note we're on an interrupt stack so we don't try and sleep
on any mailbox commands we might want to run.
2000-08-14 07:00:08 +00:00
mjacob
068c76fc80
Core version 2.0 (platform version 1.0) rewrite of ISP driver. Some
...
interace cleanups, some new common functions. The major impact that
will be noticeable right away is that if you boot with not Fibre connected
to the FC cards, you no longer hang indefinitely.
2000-08-01 23:55:09 +00:00
mycroft
f9f72ecf9a
Purge C++-style comments.
2000-07-24 04:28:51 +00:00
pk
406e0f779f
Add a `device class' interrupt level argument (from machine/intr.h)
...
to bus_interrupt_establish().
It's currently only used in sparc64/dev/psycho.c to assign a CPU interrupt
level to devices in PCI slots.
2000-07-09 20:57:41 +00:00
mjacob
855b5ef9b0
Use new isp_handle_index inline function. Change order in whch
...
some things are done. Remember to enable interrupts after calling
isp_reset but before isp_attach.
2000-07-05 22:10:56 +00:00
mrg
261538ecac
remove include of <vm/vm.h>
2000-06-28 16:39:25 +00:00
eeh
79dffec702
Get PCI HME working.
2000-06-25 01:05:16 +00:00
pk
f67e2cd132
Eliminate a race condition reported by mouse on port-sparc.
2000-06-14 08:01:26 +00:00
nisimura
4371d91433
Have MI ncr53c9x_attach() the 2nd and 3rd arguments for scsipi_adater
...
and scsipi_device respectively, with size reduction of ncr53c9x_softc.
Specifying NULL instructs the driver to use default adapter and default
device codes. Every target port has ncr53c9x_attach(sc, NULL, NULL) anyway.
2000-06-05 07:59:50 +00:00
cgd
cffb580806
Implement the more flexiable `evcnt' interface as discussed (briefly) on
...
tech-kern and now documented in evcnt(9).
2000-06-04 19:14:14 +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
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
mrg
dfe176302c
add some casts to (u_long) to shut up gcc
2000-04-14 08:22:49 +00:00
mycroft
528bd4a794
Move esp declaration to conf/files.
2000-03-25 19:58:04 +00:00
thorpej
fc96443d15
New callout mechanism with two major improvements over the old
...
timeout()/untimeout() API:
- Clients supply callout handle storage, thus eliminating problems of
resource allocation.
- Insertion and removal of callouts is constant time, important as
this facility is used quite a lot in the kernel.
The old timeout()/untimeout() API has been removed from the kernel.
2000-03-23 07:01:25 +00:00
pk
9e16037265
Simplify the attach routine a bit.
2000-02-22 12:24:53 +00:00
pk
b4e291e818
Fix some off-by-one errors; patch from Jonathan O'Brien.
2000-02-22 12:12:21 +00:00
mjacob
6f13498242
correct oops on last checkin
2000-02-19 15:13:07 +00:00
mjacob
a9697ee5f2
Handle > 12 byte CDBs.
2000-02-19 01:55:42 +00:00
pk
a1b5434cec
Make promiscuous mode go again.
2000-02-14 17:06:45 +00:00
thorpej
94b1e4084a
Don't dry to diving MIIF_NOISOLATE in the PHY drivers. Instead, pass
...
flags down from the parent to child vi mii_attach().
2000-02-02 17:46:42 +00:00
thorpej
84dc99fdea
Bring some order to the chaos which was the MII code function naming
...
"conventions".
2000-02-02 08:05:26 +00:00
mjacob
0e0104d0e9
There is no readily available tool to set NVRAM on isp's on sparc,
...
so ignore it.
2000-01-14 08:43:17 +00:00
joda
78d457dc77
(stp4020_chip_mem_map): explicitly don't handle 8-bit memory
2000-01-13 10:03:25 +00:00
pk
c6b6f3883a
Remove old-style boot device recognition.
2000-01-11 12:59:43 +00:00
mjacob
2a7d01e353
The trigger for not downloading f/w is now a
...
NULL f/w pointer, not a nonzero f/w length.
2000-01-09 18:55:11 +00:00
mjacob
250a1f41c2
The sense of being able to sleep for DMA resources was reversed. Oops.
2000-01-09 18:44:40 +00:00
pk
2afd4d3aec
* remove full duplex modes for the internal transceiver
...
* internal transceiver needs to be reset for the BMSR_LINK bit to
be even remotely reliable
* because of previous, maintain link state, so we won't be sensing speed
all the time when interface flags need to be changed (e.g. entering/exiting
promiscuous mode)
* in auto-speed mode, report link condition changes on the console
1999-12-23 16:39:56 +00:00
pk
7ab5ad7988
Streamline media code a bit by some `pseudo-mii' code designed to handle
...
the on-board transceiver.
1999-12-22 16:05:12 +00:00
pk
f037f3be7e
Shuffle some code around to allow two PHYs to attach. Only one PHY can
...
be used at a time, but it's now possible to select one by using ifconfig(8)'s
`instance' parameter.
1999-12-21 21:07:42 +00:00
pk
bbbbfe896e
* Remove spurious blockade in the path to get the transceiver status word.
...
* Make sure to flip the 10baseT/100baseTX bit when doing autoselect.
* Miscellaneous cosmetics.
1999-12-20 22:23:39 +00:00
pk
d135edf1a7
#define the bit positions of the MIF I/O lines.
1999-12-20 22:19:11 +00:00
mjacob
5babd2b8c9
get back to looking at config flags
1999-12-20 00:49:58 +00:00
mjacob
e6da5abb16
Add back in inclusion of microcode and rationalize it. request/response
...
queue indices need to be u_int16_t wide.
1999-12-04 02:56:30 +00:00
pk
d5a471ccc9
Check presence of Sbus interrupt properties before using them.
...
Only one case is known to trigger this omission: a Sparc Classic
configured as X terminal.
1999-11-21 15:01:50 +00:00
thorpej
4bdf6bd731
Call mii_down() as appropriate.
1999-11-12 18:14:17 +00:00
pk
23c39b410d
Fix some diagnostic output with a patch from Jonathan O'Brien.
1999-11-05 19:00:44 +00:00
mrg
bd0928e723
find "SUNW,hme" as well as "hme". this matches the onboard
...
ultra2 hme. haven't actually tested this beyond it probing
because my scsibus is hanging. anyway, it reports:
hme0 at sbus0 slot 14 offset 0x8c00000 vector 21 ipl 6: address 08:00:20:8f:7f:8f
1999-11-04 05:31:38 +00:00
thorpej
ca9b9a3b2e
Adapt to mii_phy_probe() change.
1999-11-04 00:24:00 +00:00
mjacob
44c603dd7b
Remove reference to loadable f/w.
1999-10-28 16:11:19 +00:00
mjacob
6bbb170768
We alloc xflist and dma maps in mailbox setup. We swizzle endian stuff
...
at the end of dma setup.
1999-10-14 02:16:04 +00:00
thorpej
63b8530b4e
Update for SCSPI changes.
1999-09-30 23:04:39 +00:00
thorpej
7b3258b6a7
Make the kthread API a bit more friendly to loadable kernel modules.
1999-07-06 21:44:09 +00:00
pk
a7e4d3ac4d
Add the Sbus front-end for the HME driver.
1999-06-27 12:47:52 +00:00
pk
4f2e48c4d2
Don't turn on the engine too early.
...
Add and use QEDEBUG.
1999-06-24 19:59:14 +00:00
pk
9335333dee
Issue a reset command when initializing.
1999-06-24 19:56:51 +00:00
mrg
67cbdf5623
split sbus audiocs code up so we can share it with the ebus. XXX ebus DMA is probably different.
1999-06-05 14:29:10 +00:00
pk
61e5d73035
Fix bus_size_t/size_t/int confusion.
1999-05-27 14:22:28 +00:00
thorpej
f98d358a1f
Rework layer 2 protocol input routines. Instead of calling e.g. ether_input()
...
directly, call the function pointer (*if_input)(ifp, m). The input routine
expects the packet header to be at the head of the packet, and will adjust
as necessary. Privatize the layer 2 input and output routines, allowing
*_ifattach() to set them up as appropriate.
1999-05-18 23:52:51 +00:00
mrg
f5af676456
white space.
1999-05-16 14:47:52 +00:00
pk
569836a986
It is no longer necessary to protect bus_dma_[un]load() at splbio, since
...
sparc bus_dma*() functions now protect their own internals..
1999-04-25 10:40:53 +00:00
pk
52db3a158e
Correct QESTAT `%b' format string.
1999-04-20 20:24:39 +00:00
pk
401d03761f
Initialize automatics in stp4020print(); noticed by Jonathan O'Brien.
1999-03-29 21:30:48 +00:00
cjs
5ecfcfbb96
Make `sun4m DMA not supported yet' message print only for this device,
...
rather than every sbus device probed.
1999-03-29 12:04:43 +00:00
mjacob
d8aa229a12
roll internal release tag
1999-03-26 22:45:17 +00:00
mjacob
3cafeadabd
Add support for the PTI SBS430. It's a FAS200 type chip- it's a bit funky
...
in that the registers aren't spread by a longword like all the other SBus/ESP
cards. Otherwise it's much the same. It'll make Brad Salai happy.
1999-03-26 06:48:40 +00:00
pk
54ae4d24b8
Call bus_dma_[un]load() at splbio.
1999-03-23 00:38:15 +00:00
pk
d86e93c62a
Fix promiscuous modes - patches from Jason Wright.
1999-03-23 00:27:09 +00:00
eeh
b71ea6aad4
Use correctly bus_space_*() macros to access device registers.
1999-03-19 02:32:48 +00:00
mjacob
c312dfb410
prototype 1080/1240 support caused register offset rewhack
1999-03-17 06:17:16 +00:00
mrg
fbda6bed6d
make this compile on SUN4U. XXX icky, reader beware.
1999-03-09 00:42:20 +00:00
pk
87ae97e3f0
Fix what is probably a past-o.
1999-02-28 17:01:49 +00:00
pk
5c062abb64
Fix the bus print function.
1999-02-27 22:21:13 +00:00
pk
331694119a
Our device name differs from the PROMs node name.
1999-02-27 13:17:08 +00:00
pk
c6c74098d0
Don't try to use the MII routines for the internal PHY.
1999-02-19 14:57:00 +00:00
mycroft
71105fbda7
Update comments.
1999-02-17 21:44:55 +00:00
mycroft
e5f5e628d2
Pass the direction to the allocm and round_buffersize methods.
...
Some drivers need this to properly allocate DMAable memory.
1999-02-17 02:37:38 +00:00
mjacob
1a911bb798
roll internal release level
1999-02-09 00:54:07 +00:00
mrg
4553ce553c
use <dev/sbus/sbusvar.h> not <sparc/dev/sbusvar.h>
1999-02-03 06:03:37 +00:00
mjacob
5c5ac2958f
roll internal release tag and finally use bus_space I/O
1999-01-30 07:10:38 +00:00
pk
2fa7bdbccd
Fix AF_NS code.
1999-01-18 13:29:01 +00:00
pk
fb846bde24
Share ring buffer code and data structure for `be' and `qe' in
...
the QEC module. Adapt the QEC interrupt establish code to suit the
needs of the `qe' device.
1999-01-17 20:47:50 +00:00
pk
ad3176f350
Add `qe' network interface device.
1999-01-17 20:44:58 +00:00
pk
5e8fcd9428
Import Jason Wright's Sbus Quad ethernet (`qe') driver as found in OpenBSD.
...
Heavily pounded on by me to make it fit our driver model.
Also added: auto media selection; shared ring buffer code with `be'.
1999-01-17 20:44:18 +00:00
pk
6d1f55bc7a
Initial revision
1999-01-16 13:19:11 +00:00
pk
c830c88dd2
Convert to bus_space(9).
...
Add buffer allocations needed by the be driver.
1999-01-16 12:46:08 +00:00
pk
e0e761e420
Import Jason Wright's Bigmac driver, written for OpenBSD.
...
Heavily pounded on by me to make it fit our driver model.
1999-01-16 12:43:09 +00:00
kleink
a9b05361c1
Avoid arithmetic on void *.
1999-01-12 02:28:55 +00:00
mjacob
e618c0c7d7
turn on SBUS bursts
1999-01-10 06:22:12 +00:00
mjacob
d6cab14b00
clean up headers
1998-12-28 19:12:26 +00:00
pk
bb12def997
Use `pcmciabus' to attach the Sbus to PCMCIA bridge.
1998-11-26 15:33:29 +00:00
pk
2814b02ec8
Define STP4020 chipset driver by its nickname `nell'.
...
XXX - also define a `pcic' attribute here, so we can attach a pcmcia bus
1998-11-22 22:17:27 +00:00
pk
5e4ad115c3
The beginnings of a driver for the Sbus <=> PCMCIA bridge chipset STP4020.
1998-11-22 22:14:35 +00:00
thorpej
3b068a6c78
Adapt to the new scsipi_adapter interface.
1998-11-19 21:53:32 +00:00
thorpej
29d472f53d
Garbage-collect the open_target_lu and close_target_lu entry points from
...
struct scsipi_adapter; they were not used.
Add a scsipi_ioctl entry point to struct scsipi_adapter. This will be
used to issue ioctl commands to the host adapters.
Inspired by PR #6090 , from Matt Jacob.
1998-10-10 00:28:28 +00:00
pk
1338a7e982
hwreset(): delay required after diddling the medium selection bit.
1998-09-26 08:31:20 +00:00
pk
ed652e2a09
Fix a silly yank-o.
1998-09-25 14:19:20 +00:00
pk
6da4cd8aac
Make dma_sbus.c dependent on dma_sbus attribute.
1998-09-23 08:48:25 +00:00
pk
f9e261c5e4
LSI63854 based parallel port driver skeleton.
1998-09-21 21:20:47 +00:00
pk
fa25d48556
Add `bpp' device: the parallel port glued onto the LSI64854 DMA controller.
1998-09-21 21:02:23 +00:00
mjacob
8fdc5aee4b
Make changes as required for new return values from dma setup routine
...
for isp. Unable to test in running kernel because they're not buildable today,
but should be okay.
1998-09-18 00:26:11 +00:00
pk
cf10308f5f
bootpath check needs to keep checking for two formats.
1998-09-15 20:26:25 +00:00
mjacob
8fec1fd696
add bustype tag to softc
1998-09-08 07:36:26 +00:00
pk
af17d22848
Missing bits in DEBUG mode.
1998-09-07 07:58:45 +00:00
eeh
199e474e95
Removed some spurious `long's.
1998-09-06 22:43:16 +00:00
eeh
c5b834a5bc
Do it right for a change.
1998-09-06 21:23:58 +00:00
eeh
b9ce59191d
Oops. Fix overenthusiastic macro.
1998-09-06 21:21:06 +00:00
eeh
484ce04810
The `address' field from the prom is really an unsigned 32-bit value.
...
Make it so.
1998-09-05 22:29:49 +00:00
eeh
c05097f947
Remove function name conflict.
1998-09-05 22:14:25 +00:00
pk
18da157aa9
Assign my copyrights to TNF.
1998-09-05 17:28:57 +00:00
pk
42ebb851c5
sparc64 uses more of this file.
1998-09-05 16:47:06 +00:00
pk
5038a72078
A few modest simplifications.
1998-08-31 11:13:54 +00:00
pk
98e669d970
Use sbus attach args features.
...
getpropA() => getprop()
1998-08-30 21:25:30 +00:00
pk
fe6b9295a8
Adjust for some small changes in lsi64854 back-end driver.
1998-08-29 21:43:00 +00:00
pk
1f0567dd53
Nuke unnecessary header files.
1998-08-29 20:38:38 +00:00
pk
3557f62f30
Use bus_space_*() to access device registers.
...
Add `esp' and `le' DMA engine.
1998-08-29 20:32:09 +00:00
pk
15d097c04d
Make compile without AUDIO_DEBUG
1998-08-29 19:52:09 +00:00
pk
1643e13b90
XXX - BUS_DMA_BIT24 does not exist everywhere..
1998-08-28 20:01:08 +00:00
pk
9441400ef0
Nuke Dprintf; fix formats.
...
Add missing copyright.
1998-08-28 08:58:24 +00:00
pk
efad4d44c0
CS4231 audio driver. Play only for now.
1998-08-27 20:51:17 +00:00
pk
ce2bbbd092
Add audiocs.
1998-08-27 20:49:37 +00:00
mrg
41ad1758ac
move isp_sbus attachment into /sys/dev/sbus.
1998-08-27 11:30:45 +00:00
pk
6ab705c01b
Also include SUN4 in the temporary split
1998-08-25 22:42:48 +00:00
pk
ef6b13cc87
vm_offset_t => vaddr_t.
1998-08-21 14:13:47 +00:00
pk
5ad46000df
Remove vestiges of sparc-specific interrupt handling.
1998-08-20 11:44:58 +00:00
mycroft
62b1bf3e2e
Assign my copyrights to TNF.
1998-08-15 10:51:16 +00:00
eeh
a2dd74ed79
Merge paddr_t changes into the main branch.
1998-08-13 02:10:37 +00:00
pk
6026f141fd
Enable bus_dmamem_alloc/bus_dmamem_map
1998-07-30 22:44:51 +00:00
pk
4f2fd378bb
Use sbus_destroy_attach_args().
1998-07-29 18:33:27 +00:00
pk
1d8ad313ab
`struct rom_range' => `struct sbus_range'
1998-07-29 18:32:54 +00:00
pk
9a7ffd5724
Move some Sbus structures in here.
...
* attach arguments now directly support multiple register and
interrupt sets.
* address translation (`ranges') has been made bus-specific
* introduce sbus_destroy_attach_arg() to clean up after
attaching an an Sbus device.
1998-07-29 18:30:20 +00:00
pk
4129139031
Supported medium is IFM_10_5
1998-07-28 12:22:37 +00:00
augustss
b068e817d9
Add missing .include <bsd.kinc.mk>
1998-07-28 08:45:46 +00:00
pk
2c49105697
Fix #includes.
...
Remove #ifdef SUN4C & SUN4M.
1998-07-28 00:44:39 +00:00
pk
783e554213
One header to install.
1998-07-28 00:33:03 +00:00
pk
315e1a28de
Fix #includes
1998-07-28 00:31:42 +00:00
pk
fd9017990f
Magma driver has been moved to <dev/sbus>
1998-07-28 00:17:47 +00:00
pk
48ca0ed59d
Lance front-ends on Sbus moved here.
1998-07-27 23:56:26 +00:00
pk
947f2424a8
Add `le at sbus', `le at lebuffer' and `en at sbus'.
1998-07-27 23:54:58 +00:00
pk
fa624fd99a
Moved to dev/sbus from arch/sparc/dev
...
Get headers from <dev/sbus>
1998-07-27 23:47:07 +00:00
pk
81ff4e8b36
qec device register definitions (from OpenBSD).
1998-07-27 19:27:19 +00:00
pk
3252d462bb
qec `bus' driver; much like lebuffer.
1998-07-27 19:26:32 +00:00
pk
08a95cc833
Change copyright.
1998-07-27 19:25:34 +00:00
pk
e68ada23e2
Move "sbusvar.h" hack in here.
...
Also define SBUS_BURST_* values here.
1998-07-27 19:15:40 +00:00
pk
3299f8cfe4
Get headers from dev/sbus.
1998-07-27 19:13:45 +00:00
pk
b1fe2da904
get headers from dev/sbus
1998-07-27 19:13:06 +00:00
pk
444f71921e
sbus configuration file.
1998-07-27 19:04:14 +00:00
mrg
53017397ee
move these files to sys/dev/sbus. currently uses a hack to access the correct "sbusvar.h" XXX fix me.
1998-07-27 05:43:58 +00:00
pk
3f6155e843
Update from Iain for the parallel port stuff.
1998-06-07 21:14:17 +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
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
pk
4e62cce89a
Magma SBus serial & parallel port driver from Iain Hibbert.
1998-05-19 23:58:54 +00:00
pk
90b5c246c6
Skeleton code for the SBus expander box.
1998-04-18 19:00:17 +00:00
pk
69fe6f242f
Account for changed bus attachment scheme.
1998-03-21 20:11:30 +00:00
pk
ec02e14ae2
Remove all `bustype' arguments from map[io]dev() and REG2PHYS().
1997-05-24 20:16:06 +00:00
christos
8d9699acda
backout previous kprintf change
1996-10-13 02:59:55 +00:00
christos
19d8368f2f
printf -> kprintf, sprintf -> ksprintf
1996-10-11 00:44:42 +00:00
chuck
7544016a9d
sbus specific stuff for eni155s sbus atm card.
...
XXX: only works on sun4c, needs something better than vtophys() for
machines with IOMMUs(?).
1996-06-22 02:02:48 +00:00