Commit Graph

75 Commits

Author SHA1 Message Date
onoe
3ad99107cb Simplify to update sc_intmask in fwohci_intr(). 2001-06-28 14:38:56 +00:00
onoe
a0eef76f35 FW_DEBUG: split debug printf in fwohci_intr() and fwohci_phy_input() into
fwohci_show_intr() and fwohci_show_phypkt() respectively.
2001-06-28 14:37:56 +00:00
onoe
d38786d61f fix printf to DPRINTFN inside FW_DEBUG 2001-06-25 04:52:26 +00:00
jmc
c2b5ec5220 Add a few nits. Hubs seem problematic on resets sometimes.
Also, make sure fwohci can detach cleanly (for cardbus).
2001-05-17 05:30:37 +00:00
jmc
0aae41bf84 Clean up comment about unregistering callbacks 2001-05-15 06:54:07 +00:00
jmc
c3967bca55 Various small changes.
Clean up one bug in a DPRINTF in arrs_input which could panic on some packets.
Gut the ack/response functionality and clean it up so all packets get checked
correctly and the abuf struct isn't used once the ab_cb has happened (there
still could be ack packets waiting to be processed at that time).
Finally, add some documentation explaining read/write/inreg and their
purpose/argument calling.
2001-05-15 06:52:30 +00:00
jmc
d91da495a9 Back out last change until I get fwohci rototilled better for checking the ack bits. Makes things compile again. 2001-05-15 06:30:30 +00:00
jmc
61ca5f641b Remove ackcb. It's a duplicate of existing functionality. 2001-05-14 06:51:36 +00:00
jmc
98139fa8b9 Make sure and zero out the malloc'd abufs before using them. 2001-05-14 05:46:41 +00:00
jmc
3790f44eac Add a retries counter to abuf 2001-05-13 05:02:08 +00:00
jmc
880b3e6a6f Add locators support 2001-05-13 05:01:42 +00:00
jmc
bfd7dcb931 Add first pass generic ack callback code (to eventually replace mbuf specific code).
Change ab_node's to ab_req.
Fix a bug where setting BIBValid on OHCI 1.0 chips (this is a reserved bit
on 1.0)
2001-05-11 06:10:44 +00:00
jmc
29499573cd Change ab_node's to ab_req.
Use read/write instead of input/output.
Fix a bug in attach where the abuf wasn't getting zero'd out.
2001-05-11 06:09:01 +00:00
jmc
5bf1559a64 Rename input/output to read/write to match ieee1394var.h 2001-05-11 06:07:40 +00:00
jmc
2d235c864f Add some notes 2001-05-11 06:07:02 +00:00
jmc
b4974f0526 Add first pass of generalized hooks for packet completion (i.e. ack) codes. This will eventually replace the mbuf code when it moves back to if_fw.c where it belongs. 2001-05-11 06:06:03 +00:00
jmc
6dc32302f3 Add mask for getting the ACK bits out of the status area of a DMA context descriptor 2001-05-11 06:04:49 +00:00
jmc
b7d6b60f87 Change abuf to include both requestor and responder softc's (for dealing with requests from other nodes later).
Add a callback so the ACK bits can be looked at if wanted.
Change the input/output pointers to proper proto's and rename to read/write.
2001-05-11 06:03:55 +00:00
jmc
32a67a12cd Remove extraneous prototype 2001-05-11 06:00:17 +00:00
augustss
94b7017e7f Point out where the documentation is wrong. 2001-05-09 12:08:44 +00:00
jmc
f29b37329e Change to DPRINTF/DPRINTFN for debug output. 2001-05-03 04:42:11 +00:00
jmc
3aa56ffc5a Retabify to correct style. Also, change to using DPRINTF interface for debug output. 2001-05-03 04:41:34 +00:00
jmc
4e54f2d907 Style police. Got the tab'ing correct 2001-05-03 04:37:43 +00:00
jmc
4dbb3cf591 Add a few more items 2001-05-01 13:57:41 +00:00
enami
37ed68b3e4 Avoid null pointer dereference. 2001-05-01 06:17:23 +00:00
enami
d483a2c9e2 Fix whitespace usage (fow now, previously existing code only just due to
my time shortage):
- Use 8 column for basic indent.
- Use 4 space for 2nd level indent.
- Use tab instead of 8 spaces.
- Don't put space before function call operator.  That's unary operator.
- Wrap lines so that it fits in 80 columns.
2001-05-01 06:15:42 +00:00
jmc
5044375656 Wrap some variable definitions with #ifdef FW_DEBUG that only apply in debug mode. 2001-05-01 05:17:40 +00:00
jmc
f58c020bfc Remove some one-off debug printf's 2001-05-01 05:17:08 +00:00
jmc
af20295c95 Extend ieee1394_abuf to include read/write operations cleanly.
Add ieee1394_attach_args
Add sc1394_configrom_len
Add list links for nodelists from parent bus.
2001-05-01 04:48:11 +00:00
jmc
370ee1f0f0 Add a 64bit version of CSR_BASE 2001-05-01 04:48:10 +00:00
jmc
59c9536fe4 Add proc struct for kthread, interrupt handler flags, and nodelist 2001-05-01 04:48:10 +00:00
jmc
06dd6e0f40 Extensive changes from fwnode integration
Move interrupt routine to simply updating state flags and ack'ing interrupts
Move main processing into kthread
Change IPL level to IPL_BIO and try not to hold splbio very much if at all.
Add baseline support for attaching/detaching/updating fwnode's.
Start adding higher level API which isn't tied to if_fw/mbuf's
2001-05-01 04:48:10 +00:00
jmc
b44a25d8d6 Initial checkin for fwnode code. Needs extensive cleanup 2001-05-01 04:48:10 +00:00
jmc
cd6ceaf2cd Put in the structure for fwnode/fwscsi 2001-05-01 04:48:10 +00:00
jmc
59bde215a7 Initial checkin for fwnode support 2001-05-01 04:46:23 +00:00
jmc
46ebed2ee8 Initial checkin for fwnode support 2001-05-01 04:19:20 +00:00
jmc
b2230effa3 Doesn't need fwohci include's. Change struct device to ieee1394_softc. 2001-05-01 04:18:29 +00:00
jmc
1a5e77115a Place holder until real fwscsi code is fleshed out. 2001-04-30 09:06:27 +00:00
jmc
dfc69462fd First pass at the overall TODO list. Some of these may come off before I get the full code checked in even 2001-04-30 09:05:40 +00:00
jmc
98182717b8 Rework implementation notes/ideas with a more fleshed out example. 2001-04-30 09:02:38 +00:00
jmc
a2d52d0ed4 Add #define for 1394 ROM signature 2001-04-29 08:37:04 +00:00
thorpej
bf2dcec4f5 Remove the use of splimp() from the NetBSD kernel. splnet()
and only splnet() is allowed for the protection of data structures
used by network devices.
2001-04-13 23:29:55 +00:00
jdolecek
372e5956ef Only install headers which are actually used by our userland. This
saves about 2.2MB under /usr/include/dev/. Discussed on tech-kern@
recently.

I HOPE to get the list right. The headers I left in are ones
used for MI tools and those whose usage I discovered by grep over tree sources.
Feel free to put needed includes back in if you encounter anything which
should not be removed from lists.
2001-04-11 07:42:31 +00:00
enami
fe99796a13 Make fwohci works on big endian cpu (e.g., powermac g4). 2001-03-15 23:01:33 +00:00
enami
bb839b38fa - Wrap long line.
- Consistently use #define<TAB> instead of #define<SPACE>.
2001-03-15 22:26:03 +00:00
onoe
9b1d7974ba make compilable again without FW_DEBUG. 2001-03-14 06:46:17 +00:00
onoe
e880c0b80b Fix to validate selfid buffer according to the OHCI spec.
1. read 'gen' from first quadlet of the buffer.
	2. raed selfid packets in the buffer.
	3. confirm 'gen' field of the SELFID register matches 1.
2001-03-12 23:39:35 +00:00
onoe
4536167cac Reinitialize context match register at fwohci_hw_init()
to receive asynchronous stream data after suspend/resume.
2001-03-12 23:36:09 +00:00
onoe
2cff6cf490 use OHCI_BITVAL(val, name), instead of
((val) & (name##_MASK)) >> name##_BITPOS
2001-03-12 23:27:53 +00:00
onoe
1c4a0d3428 change fw_verbose inside #ifdef FW_DEBUG
0) no verbose messages.
	1) print non-fatal errors, nodeid, unique ID for other nodes.
	2) extra printfs.
2001-03-12 23:22:37 +00:00