<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev/cy/cy_pci.c, branch releng/6.4</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F6.4</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F6.4'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2005-03-05T18:30:12Z</updated>
<entry>
<title>Use BUS_PROBE_DEFAULT for pci probe return value</title>
<updated>2005-03-05T18:30:12Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2005-03-05T18:30:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=538565c4a516bd50ffcffbb855026ad914300b73'/>
<id>urn:sha1:538565c4a516bd50ffcffbb855026ad914300b73</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Start each of the license/copyright comments with /*-, minor shuffle of lines</title>
<updated>2005-01-06T01:43:34Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2005-01-06T01:43:34Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=098ca2bda93c701c5331d4e6aace072495b4caaa'/>
<id>urn:sha1:098ca2bda93c701c5331d4e6aace072495b4caaa</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add missing &lt;sys/module.h&gt; includes</title>
<updated>2004-05-30T20:08:47Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2004-05-30T20:08:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=fe12f24bb098d8d2a6c35394a53a65b3e64f83d9'/>
<id>urn:sha1:fe12f24bb098d8d2a6c35394a53a65b3e64f83d9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Reduce differences with cy_isa.c: fixed an unsorted include.</title>
<updated>2004-05-01T18:43:00Z</updated>
<author>
<name>Bruce Evans</name>
<email>bde@FreeBSD.org</email>
</author>
<published>2004-05-01T18:43:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ee1f208e5018a4a5b9a2f42cf81602048f6a9ac3'/>
<id>urn:sha1:ee1f208e5018a4a5b9a2f42cf81602048f6a9ac3</id>
<content type='text'>
Remove unused includes.
</content>
</entry>
<entry>
<title>Adjust pathnames for the move from i386/isa to dev/cy.</title>
<updated>2004-05-01T18:09:16Z</updated>
<author>
<name>Bruce Evans</name>
<email>bde@FreeBSD.org</email>
</author>
<published>2004-05-01T18:09:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=60792a34e92fae14d0bd27053b66524dbd9d6c4b'/>
<id>urn:sha1:60792a34e92fae14d0bd27053b66524dbd9d6c4b</id>
<content type='text'>
Adjust staticness and a variable name for the split of cy.c into cy.c and
cy_isa.c.  Use the new header required for the split to avoid repeating
declarations in cy_pci.c.
</content>
</entry>
<entry>
<title>Converted the isa probe and attach to new-bus so that this driver works</title>
<updated>2004-04-05T08:16:23Z</updated>
<author>
<name>Bruce Evans</name>
<email>bde@FreeBSD.org</email>
</author>
<published>2004-04-05T08:16:23Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=42d122e1251ea547b43af6306bb079d307549f43'/>
<id>urn:sha1:42d122e1251ea547b43af6306bb079d307549f43</id>
<content type='text'>
without the (defunct) isa compatibility shims.  The new-bus-specific
parts are very similar to the ones for the pci probe and attach.

This was held up too long waiting for a repo copy to src/sys/dev/cy,
so I decided to fix the files in their old place.  This gives easier
to read and merge diffs anyway.

The "count" line in src/sys/conf/files won't be changed until after
the repo copy, so old kernel configs that specify a count need not be
(and must not be) changed until then.  The count is just ignored in
the driver.  One unfinished detail is dynamic allocation of arrays
with &lt;count&gt; and (&lt;count&gt; * 32) entries, and iteration over the arrays.
This is now kludged with a fixed count of 10 (up to 10 cards with up
to 32 ports each).

Prodded by:	imp
Submitted by:	mostly by imp
Approved by:	imp
</content>
</entry>
<entry>
<title>Fixed some minor indentation bugs.</title>
<updated>2003-12-02T12:47:08Z</updated>
<author>
<name>Bruce Evans</name>
<email>bde@FreeBSD.org</email>
</author>
<published>2003-12-02T12:47:08Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=fb0ca10d0c43b5538b8899e6940babf6baa7808e'/>
<id>urn:sha1:fb0ca10d0c43b5538b8899e6940babf6baa7808e</id>
<content type='text'>
Approved by:	re (scottl)
</content>
</entry>
<entry>
<title>Fixed breakage of the pci case of the cy driver by the new interrupt</title>
<updated>2003-12-02T12:36:00Z</updated>
<author>
<name>Bruce Evans</name>
<email>bde@FreeBSD.org</email>
</author>
<published>2003-12-02T12:36:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=933a354fe50fa54e08b8b7430613c00121741839'/>
<id>urn:sha1:933a354fe50fa54e08b8b7430613c00121741839</id>
<content type='text'>
code.  Both the driver and the new code were wrong.  Driver interrupt
handlers are supposed to take "void *vsc" arg, but some including all
COMPAT_ISA drivers and the pci part of the cy driver want an "int unit"
arg.  They got this using bogus casts of function pointers which should
have kept working despite their bogusness.  However, the new interrupt
code doesn't honor requests to pass an arg of ((void *)0), so things
are very broken if the arg is actually a representation of unit 0.

The fix is to use a normal "void *vsc" arg for the pci case and a
wrapper for the COMPAT_ISA case (of the cy driver).  This cleans up
new-busification of the pci case but takes the COMPAT_ISA case a little
further from new-bus.  The corresponding bug for the COMPAT_ISA case
has already been fixed similarly using a wrapper in compat_isa.c and
we need another wrapper just to undo that.

Fixed some directly related style bugs (mainly by removing compatibility
cruft).

cy.c:
Fixed an indirectly related old bug in cyattach_common().  A wrong status
was returned in the unlikely event that malloc() failed.

Approved by:	re (scottl)
</content>
</entry>
<entry>
<title>Use __FBSDID().</title>
<updated>2003-06-11T06:34:30Z</updated>
<author>
<name>David E. O'Brien</name>
<email>obrien@FreeBSD.org</email>
</author>
<published>2003-06-11T06:34:30Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f4636c595963ab77fae559bb5eb35e54c9951538'/>
<id>urn:sha1:f4636c595963ab77fae559bb5eb35e54c9951538</id>
<content type='text'>
</content>
</entry>
<entry>
<title>- Express hard dependencies on bus (pci, isa, pccard) and</title>
<updated>2003-04-15T06:37:30Z</updated>
<author>
<name>Matthew N. Dodd</name>
<email>mdodd@FreeBSD.org</email>
</author>
<published>2003-04-15T06:37:30Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f246e4a17fd469ab781124a678e103d44d637c5f'/>
<id>urn:sha1:f246e4a17fd469ab781124a678e103d44d637c5f</id>
<content type='text'>
  network layer (ether).
- Don't abuse module names to facilitate ifconfig module loading;
  such abuse isn't really needed.  (And if we do need type information
  associated with a module then we should make it explicit and not
  use hacks.)
</content>
</entry>
</feed>
