freebsd-skq/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
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
agpreg.h
agpvar.h
alpm.c
amd.c Move unused functions into #if 0 ... #endif. 2001-05-06 08:07:10 +00:00
amd.h
cy_pci.c
cy_pcireg.h
dc21040reg.h
ide_pcireg.h
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
if_de.c
if_devar.h
if_en_pci.c
if_fxp.c
if_fxpreg.h
if_fxpvar.h
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
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
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
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
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
if_ste.c
if_stereg.h
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
if_tlreg.h
if_tx.c
if_txvar.h
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
if_wx.c Several things: 2001-04-09 21:54:15 +00:00
if_wxreg.h
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
locate.pl
meteor_reg.h
meteor.c
ncr.c
ncrreg.h
ohci_pci.c
scsiiom.c
simos.c
simos.h
ti_fw2.h
ti_fw.h
uhci_pci.c Add description for 82801BA controller. 2001-05-21 01:24:14 +00:00
xmaciireg.h
xrpu.c