freebsd-dev/sys/pci
Bosko Milekic f5eece3fb9 Change m_devget()'s outdated and unused `offset' argument to actually mean
something: offset into the first mbuf of the target chain before copying
the source data over.

Make drivers using m_devget() with a first argument "data - ETHER_ALIGN"
to use the offset argument to pass ETHER_ALIGN in. The way it was previously
done is potentially dangerous if the source data was at the top of a page
and the offset caused the previous page to be copied (if the
previous page has not yet been appropriately mapped).

The old `offset' argument in m_devget() is not used anywhere (it's always
0) and dates back to ~1995 (and earlier?) when support for ethernet trailers
existed. With that support gone, it was merely collecting dust.

Tested on alpha by: jlemon
Partially submitted by: jlemon
Reviewed by: jlemon
MFC after: 3 weeks
2001-06-20 19:48:35 +00:00
..
agp_ali.c Introduce a global lock for the vm subsystem (vm_mtx). 2001-05-19 01:28:09 +00:00
agp_amd.c Introduce a global lock for the vm subsystem (vm_mtx). 2001-05-19 01:28:09 +00:00
agp_i810.c Introduce a global lock for the vm subsystem (vm_mtx). 2001-05-19 01:28:09 +00:00
agp_if.m A driver for programming the AGP hardware. This is only very lightly 2000-06-09 16:04:30 +00:00
agp_intel.c Introduce a global lock for the vm subsystem (vm_mtx). 2001-05-19 01:28:09 +00:00
agp_sis.c Introduce a global lock for the vm subsystem (vm_mtx). 2001-05-19 01:28:09 +00:00
agp_via.c Introduce a global lock for the vm subsystem (vm_mtx). 2001-05-19 01:28:09 +00:00
agp.c Introduce a global lock for the vm subsystem (vm_mtx). 2001-05-19 01:28:09 +00:00
agppriv.h Add support for Intel's i810 chipset with integrated graphics. An 2000-07-12 10:13:07 +00:00
agpreg.h Add support for Intel's i810 chipset with integrated graphics. An 2000-07-12 10:13:07 +00:00
agpvar.h A driver for programming the AGP hardware. This is only very lightly 2000-06-09 16:04:30 +00:00
alpm.c Remove unneeded (and compile-breaking) #include "alpm.h" 2001-01-17 00:38:06 +00:00
amd.c Move unused functions into #if 0 ... #endif. 2001-05-06 08:07:10 +00:00
amd.h Back out the previous change to the queue(3) interface. 2000-05-26 02:09:24 +00:00
cy_pci.c Converted to new-bus. 2001-02-01 09:49:57 +00:00
cy_pcireg.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
dc21040reg.h Remove some unused stuff 2001-03-25 07:21:04 +00:00
ide_pcireg.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
if_dc.c Change m_devget()'s outdated and unused `offset' argument to actually mean 2001-06-20 19:48:35 +00:00
if_dcreg.h Apply patch to allow TX underrun handling without issuing a complete 2001-02-22 19:26:55 +00:00
if_de.c Convert if_multiaddrs from LIST to TAILQ so that it can be traversed 2001-02-06 10:12:15 +00:00
if_devar.h Use bus_space for all register accesses. 2000-05-13 18:47:24 +00:00
if_en_pci.c newbusify the en atm driver. 2000-11-07 09:31:28 +00:00
if_fxp.c A better mousetrap: use device hints, as in: 2001-02-27 22:57:32 +00:00
if_fxpreg.h Add the PCI device ID for the on-board ethernet controllers on the 2000-09-21 20:01:57 +00:00
if_fxpvar.h Change and clean the mutex lock interface. 2001-02-09 06:11:45 +00:00
if_mn.c Fix warnings: 2001-06-15 07:39:12 +00:00
if_pcn.c Fix mindo: 2001-06-05 20:51:17 +00:00
if_pcnreg.h Change and clean the mutex lock interface. 2001-02-09 06:11:45 +00:00
if_rl.c Change m_devget()'s outdated and unused `offset' argument to actually mean 2001-06-20 19:48:35 +00:00
if_rlreg.h Big round of minor updates: 2001-02-21 20:54:22 +00:00
if_sf.c Change m_devget()'s outdated and unused `offset' argument to actually mean 2001-06-20 19:48:35 +00:00
if_sfreg.h Change and clean the mutex lock interface. 2001-02-09 06:11:45 +00:00
if_sis.c Change m_devget()'s outdated and unused `offset' argument to actually mean 2001-06-20 19:48:35 +00:00
if_sisreg.h Big round of minor updates: 2001-02-21 20:54:22 +00:00
if_sk.c Change m_devget()'s outdated and unused `offset' argument to actually mean 2001-06-20 19:48:35 +00:00
if_skreg.h Change and clean the mutex lock interface. 2001-02-09 06:11:45 +00:00
if_ste.c Big round of minor updates: 2001-02-21 20:54:22 +00:00
if_stereg.h Change and clean the mutex lock interface. 2001-02-09 06:11:45 +00:00
if_ti.c Vlan tags are 12 bits, mask off anything above since the chip doesn't 2001-05-23 19:25:14 +00:00
if_tireg.h Fix the definitions for memory bank sizes, which I somehow got wrong. 2001-04-26 16:40:45 +00:00
if_tl.c Big round of minor updates: 2001-02-21 20:54:22 +00:00
if_tlreg.h Change and clean the mutex lock interface. 2001-02-09 06:11:45 +00:00
if_tx.c Add support for SMC9432FTX card, possibly othe fiber optic SMC9432 family 2001-02-07 20:11:02 +00:00
if_txvar.h Add support for SMC9432FTX card, possibly othe fiber optic SMC9432 family 2001-02-07 20:11:02 +00:00
if_vr.c Change m_devget()'s outdated and unused `offset' argument to actually mean 2001-06-20 19:48:35 +00:00
if_vrreg.h Close PR 22208: bring chip out of suspend mode, because Windows might 2001-05-14 19:13:02 +00:00
if_wb.c Change m_devget()'s outdated and unused `offset' argument to actually mean 2001-06-20 19:48:35 +00:00
if_wbreg.h Change and clean the mutex lock interface. 2001-02-09 06:11:45 +00:00
if_wx.c Several things: 2001-04-09 21:54:15 +00:00
if_wxreg.h Pick up changes from Parag Patel and Kachun Lee, and self: 2001-04-09 21:47:11 +00:00
if_wxvar.h Add in MII support for LICENGOOD copper part (10/100/1000). Add in some 2001-04-09 21:48:50 +00:00
if_xl.c Grrr. Fix PR 27742 correctly this time. (At least I got -stable right.) 2001-06-01 00:34:50 +00:00
if_xlreg.h Close PR #27742: allow the xl driver to receive VLAN tagged frames by 2001-05-31 22:08:45 +00:00
intpm.c Fix warning: 2001-06-15 07:42:58 +00:00
intpmreg.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
locate.pl use warnings 2000-06-27 22:41:12 +00:00
meteor_reg.h Add $FreeBSD$ 2000-05-01 20:32:07 +00:00
meteor.c Send the remains (such as I have located) of "block major numbers" to 2001-03-26 12:41:29 +00:00
ncr.c Turn on interrupt-entropy harvesting for all/any mass storage devices 2001-03-01 17:09:09 +00:00
ncrreg.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
ohci_pci.c Remove a couple of leftover unused variables. 2000-12-13 01:06:54 +00:00
scsiiom.c Add $FreeBSD$ 2000-05-01 20:32:07 +00:00
simos.c Convert more malloc+bzero to malloc+M_ZERO. 2000-12-08 21:51:06 +00:00
simos.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
ti_fw2.h Use a custom Tigon 2 firmware image, hopefully temporarily. This is 2000-07-26 23:55:34 +00:00
ti_fw.h Update the Tigon driver to support 1000baseTX gigE over copper AceNIC 2000-07-20 22:24:43 +00:00
uhci_pci.c Add description for 82801BA controller. 2001-05-21 01:24:14 +00:00
xmaciireg.h Reoganize/update the SysKonnect driver: 2000-04-22 02:16:41 +00:00
xrpu.c Send the remains (such as I have located) of "block major numbers" to 2001-03-26 12:41:29 +00:00