freebsd-dev/sys/dev
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
..
aac Make the disk mini-layer check for and handle zero-length transfers 2001-05-06 21:55:22 +00:00
acpica What I get for "fixing" at the last minute. Correct a mis-merge of takawata's 2001-05-30 05:34:10 +00:00
advansys Restore I/O port resources to the condition before adv_isa_probe() is 2001-05-06 09:28:18 +00:00
agp Introduce a global lock for the vm subsystem (vm_mtx). 2001-05-19 01:28:09 +00:00
aha Turn on interrupt-entropy harvesting for all/any mass storage devices 2001-03-01 17:09:09 +00:00
ahb Turn on interrupt-entropy harvesting for all/any mass storage devices 2001-03-01 17:09:09 +00:00
aic Add PnP IDs for AHA-1530 and AHA-1520 cards. 2001-06-06 22:32:29 +00:00
aic7xxx ahc_eisa.c: 2001-05-15 19:41:12 +00:00
amd Move unused functions into #if 0 ... #endif. 2001-05-06 08:07:10 +00:00
amr Fix warning: 179: warning: label `done' defined but not used 2001-06-15 00:09:28 +00:00
an Fix warnings: 2001-06-15 00:10:30 +00:00
ar Move the isa parts to a separate file. 2001-04-16 13:20:39 +00:00
asr Fix probing on the alpha. It still causes the alpha to panic during 2001-04-03 00:26:34 +00:00
ata Add support for yet another Promise ATA100 variant 2001-06-08 09:51:33 +00:00
atkbdc Hints overhaul: 2001-06-12 09:40:04 +00:00
awi Currently, each wireless networking driver has it's own control program 2001-05-26 09:27:08 +00:00
bktr Undo part of the tangle of having sys/lock.h and sys/mutex.h included in 2001-05-01 08:13:21 +00:00
buslogic Turn on interrupt-entropy harvesting for all/any mass storage devices 2001-03-01 17:09:09 +00:00
cardbus Use bus_space when reading CIS. This allows us to access it in 8 bit 2001-06-05 23:42:51 +00:00
ccd Polish error handling with biofinish(). 2001-05-08 09:10:27 +00:00
cnw Use enumeration types for CARD_SET_RES_FLAGS. 2001-05-08 23:57:32 +00:00
cs
ct Correct typo. 2001-06-14 11:09:11 +00:00
cy Remove unneeded includes of sys/ipl.h and machine/ipl.h. 2001-05-15 23:22:29 +00:00
dc Change m_devget()'s outdated and unused `offset' argument to actually mean 2001-06-20 19:48:35 +00:00
de Remove some unused stuff 2001-03-25 07:21:04 +00:00
dec Fix a botch where we wrote the year register with > 2 digits (and 2001-03-09 20:39:02 +00:00
dgb New-busify and ansify. 2001-04-14 15:32:16 +00:00
digi Allow individual ports to use alternate pin settings (swap dsr & cd) 2001-06-20 14:52:08 +00:00
dpt Send the remains (such as I have located) of "block major numbers" to 2001-03-26 12:41:29 +00:00
ed Add support for Dlink DL10022 to the ed driver. This is a mii part 2001-03-03 08:31:37 +00:00
eisa
en
ep Commit part of the patch that I have for card eject problems with the 2001-06-05 22:29:16 +00:00
ex
fb With this commit, I hereby pronounce gensetdefs past its use-by date. 2001-06-13 10:58:39 +00:00
fdc Hints overhaul: 2001-06-12 09:40:04 +00:00
fe
fxp While in the interrupt loop, check for a bogus interrupt value of 0xff. 2001-06-04 22:01:44 +00:00
hea
hfa Applied the patch to fix HARP ATM that was broken when KAME IPv6 came 2001-06-20 17:09:14 +00:00
ic Moved the wd33c93 specific file to sys/dev/ic. 2001-06-14 11:05:48 +00:00
ichsmb Catch up to header include changes: 2001-03-28 09:17:56 +00:00
ida Fix warning: 186: warning: label `done' defined but not used 2001-06-15 07:26:39 +00:00
ie
iicbus Send the remains (such as I have located) of "block major numbers" to 2001-03-26 12:41:29 +00:00
isp Fix warnings: 2001-06-15 00:13:18 +00:00
ispfw
joy Send the remains (such as I have located) of "block major numbers" to 2001-03-26 12:41:29 +00:00
kbd With this commit, I hereby pronounce gensetdefs past its use-by date. 2001-06-13 10:58:39 +00:00
lge Change m_devget()'s outdated and unused `offset' argument to actually mean 2001-06-20 19:48:35 +00:00
lmc
lnc Use a module name of 'if_lnc' in both the PCI and ISA sections of 2001-03-18 17:44:23 +00:00
mc146818
mca
mcd Send the remains (such as I have located) of "block major numbers" to 2001-03-26 12:41:29 +00:00
md Remove MFS compat bits. 2001-05-29 18:49:23 +00:00
mii Only touch the PCR register in order to set bits for the fxp driver. 2001-06-02 19:51:02 +00:00
mlx Fix warning: 193: warning: label `done' defined but not used 2001-06-15 00:13:54 +00:00
mly Fix warning: 110: initialization makes pointer from integer without a cast 2001-06-15 00:16:59 +00:00
mse Send the remains (such as I have located) of "block major numbers" to 2001-03-26 12:41:29 +00:00
musycc Fix warnings: 2001-06-15 00:19:43 +00:00
ncv Turn on interrupt-entropy harvesting for all/any mass storage devices 2001-03-01 17:09:09 +00:00
nge Change m_devget()'s outdated and unused `offset' argument to actually mean 2001-06-20 19:48:35 +00:00
nmdm Send the remains (such as I have located) of "block major numbers" to 2001-03-26 12:41:29 +00:00
nsp Turn on interrupt-entropy harvesting for all/any mass storage devices 2001-03-01 17:09:09 +00:00
null Send the remains (such as I have located) of "block major numbers" to 2001-03-26 12:41:29 +00:00
ofw OpenFirmware kernel support, as used by the PowerPC and hopefully other 2001-06-16 07:17:56 +00:00
pccard Fix the panics for real this time. When something can't be allocated, 2001-05-10 06:55:39 +00:00
pccbb Revert last change: it was unintended at this time. 2001-06-20 06:24:28 +00:00
pcf
pci Fix reversed arguments to pci_write_config() 2001-06-03 09:45:40 +00:00
pcic Add PC-9821RA-E01. This appears that PC-9821 Ra20 has this either 2001-06-16 06:10:53 +00:00
pdq Undo part of the tangle of having sys/lock.h and sys/mutex.h included in 2001-05-01 08:13:21 +00:00
ppbus -Wunused cleanup 2001-06-12 07:01:27 +00:00
ppc
random Undo part of the tangle of having sys/lock.h and sys/mutex.h included in 2001-05-01 08:13:21 +00:00
ray Primary purpose of this commit is to enable support for the Aviator 2001-05-17 22:23:49 +00:00
rc Remove unneeded includes of sys/ipl.h and machine/ipl.h. 2001-05-15 23:22:29 +00:00
rp Send the remains (such as I have located) of "block major numbers" to 2001-03-26 12:41:29 +00:00
scd Send the remains (such as I have located) of "block major numbers" to 2001-03-26 12:41:29 +00:00
sf Change m_devget()'s outdated and unused `offset' argument to actually mean 2001-06-20 19:48:35 +00:00
si Send the remains (such as I have located) of "block major numbers" to 2001-03-26 12:41:29 +00:00
sio The serial console break-to-debugger support only functioned while 2001-06-20 16:47:23 +00:00
sk Change m_devget()'s outdated and unused `offset' argument to actually mean 2001-06-20 19:48:35 +00:00
smbus Send the remains (such as I have located) of "block major numbers" to 2001-03-26 12:41:29 +00:00
sn
snc
snp Add a line discipline close routine which restores some functionality 2001-06-05 05:07:53 +00:00
sound stop csa from panicing in clkrun_hack() - we were using free'd memory 2001-06-18 19:58:03 +00:00
speaker Send the remains (such as I have located) of "block major numbers" to 2001-03-26 12:41:29 +00:00
sr Fix clock selection for X.21 interfaces. 2001-02-26 16:30:02 +00:00
stg Turn on interrupt-entropy harvesting for all/any mass storage devices 2001-03-01 17:09:09 +00:00
streams Send the remains (such as I have located) of "block major numbers" to 2001-03-26 12:41:29 +00:00
sym Correctly initialize free_ccbq so that if we fail to attach (as is 2001-04-09 05:41:41 +00:00
syscons With this commit, I hereby pronounce gensetdefs past its use-by date. 2001-06-13 10:58:39 +00:00
tdfx Send the remains (such as I have located) of "block major numbers" to 2001-03-26 12:41:29 +00:00
ti Vlan tags are 12 bits, mask off anything above since the chip doesn't 2001-05-23 19:25:14 +00:00
twe Minor updates: 2001-05-07 21:46:44 +00:00
tx
usb Fix warning: 128: warning: initialization makes pointer from integer 2001-06-15 00:26:41 +00:00
vinum Fix warnings: 2001-06-15 00:23:11 +00:00
vr Change m_devget()'s outdated and unused `offset' argument to actually mean 2001-06-20 19:48:35 +00:00
vx Change m_devget()'s outdated and unused `offset' argument to actually mean 2001-06-20 19:48:35 +00:00
wds Turn on interrupt-entropy harvesting for all/any mass storage devices 2001-03-01 17:09:09 +00:00
wi Currently, each wireless networking driver has it's own control program 2001-05-26 09:27:08 +00:00
wl
xe