freebsd-skq/sys/dev
Ed Schouten 41ba7e9b13 Slightly improve the design of the TTY buffer.
The TTY buffers used the standard <sys/queue.h> lists. Unfortunately
they have a big shortcoming. If you want to have a double linked list,
but no tail pointer, it's still not possible to obtain the previous
element in the list. Inside the buffers we don't need them. This is why
I switched to custom linked list macros. The macros will also keep track
of the amount of items in the list. Because it doesn't use a sentinel,
we can just initialize the queues with zero.

In its simplest form (the output queue), we will only keep two
references to blocks in the queue, namely the head of the list and the
last block in use. All free blocks are stored behind the last block in
use.

I noticed there was a very subtle bug in the previous code: in a very
uncommon corner case, it would uma_zfree() a block in the queue before
calling memcpy() to extract the data from the block.
2009-02-03 19:58:28 +00:00
..
aac Remove duplicate 2610SA entry. 2008-11-27 20:26:02 +00:00
acpi_support - Fix incorrect array declaration that was causing the stack overflow 2008-12-27 20:48:11 +00:00
acpica Convert battery capacity/rate from mA to mW only when summary is requested. 2009-01-17 17:40:44 +00:00
adb Use si_drv1 to hold the softc for the adb_mouse character device instead of 2009-01-29 16:18:49 +00:00
adlink
advansys
ae - Eliminate unused variable. [1] 2008-12-06 14:23:45 +00:00
age Remove informational messages left. These messages were intended to 2008-11-07 07:02:28 +00:00
agp - Add few VIA bridges to agp_via.c and connect it to amd64 build 2009-01-23 17:48:18 +00:00
aha Pass bus_get_dma_tag() into the first argument of bus_dma_create_tag() 2008-10-07 23:55:32 +00:00
ahb
aic
aic7xxx Make ddb command registration dynamic so modules can extend 2008-09-15 22:45:14 +00:00
ale AR8113 also need to set DMA read burst value. This should fix 2008-12-03 09:01:12 +00:00
amd
amr Move the CAM passthrough code into a true module so that it doesn't have to be 2008-11-03 00:53:54 +00:00
an In case INET is not defined, then ANCACHE is not defined and 2008-11-06 08:55:46 +00:00
ar Retire the MALLOC and FREE macros. They are an abomination unto style(9). 2008-10-23 15:53:51 +00:00
arcmsr Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
asmc Check for non-existing model DMI string. 2008-11-29 14:20:36 +00:00
asr Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
ata Fix issue where ata_atapicmd() can never really return EBUSY which is 2009-01-12 17:18:58 +00:00
ath fix compilation w/ AH_DEBUG 2009-02-03 19:00:56 +00:00
atkbdc Synaptics touchpads must be reinitialized after suspend/resume. 2008-12-17 10:42:53 +00:00
auxio
bce Changes to match "Marketing Description" from Broadcom for HP servers. 2009-01-15 22:28:05 +00:00
bfe Add a new sysctl node 'dev.bfe.N.stats' that shows various MAC 2008-08-22 06:46:55 +00:00
bge - Limit BCM5701 B5 to 32-bit mode as a workaround for a bug which 2008-12-09 21:34:22 +00:00
bktr Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
bm Change the way we enable the BMAC cell in macio. Instead of calling the 2008-10-13 17:33:55 +00:00
buslogic
cardbus Goof, catch up to constant rename (I renamed it to match the overall PCI 2009-02-02 22:06:20 +00:00
ce Retire the MALLOC and FREE macros. They are an abomination unto style(9). 2008-10-23 15:53:51 +00:00
cfe Remove an unused variable to make the SENTRY5 mips kernel compile 2008-12-27 11:38:41 +00:00
cfi add Roel's copyright as he did the initial version 2009-02-03 19:21:15 +00:00
ciss Work again to fix the interrupt masking problems. We now recognize 2008-08-29 01:23:16 +00:00
cm
cmx Commit cmx(4), a driver for Omnikey CardMan 4040 PCMCIA smartcard readers. 2008-03-06 08:09:45 +00:00
coretemp Introduce cpu_vendor_id and replace a lot of strcmp(cpu_vendor, "..."). 2008-11-26 19:25:13 +00:00
cp Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
cpuctl Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
cpufreq Attach the cpufreq child devices with specific orders to enforce relative 2008-08-13 16:09:40 +00:00
cs Improve the EEPROM parsing, based on finding a datasheet that describes 2008-07-09 16:47:55 +00:00
ct
ctau Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
cx Do not set IFF_DEBUG directly from the driver. 2008-06-30 21:18:27 +00:00
cxgb Check in the actual module recognition code for the Chelsio 2008-12-18 14:21:35 +00:00
cy
dc - According to the corresponding Linux, NetBSD and OpenSolaris 2008-12-07 23:02:37 +00:00
dcons Check the return values of contigmalloc(9) as well as bus_dma(9) 2009-01-07 21:25:44 +00:00
de During attach on some de(4) adapters the driver sends out a test packet as 2008-04-05 17:24:44 +00:00
digi Remove unused files from the digi(4) driver. 2009-01-16 14:45:48 +00:00
dpt
drm Only set registers if irqs are enabled 2008-12-23 22:53:57 +00:00
e1000 Fix a cut/paste bug which prevents us from setting the average 2009-01-13 00:10:50 +00:00
ed When the miibus for the AX88x90 or TC5299J cards fails to attach, we 2008-08-06 22:22:27 +00:00
eisa
en Hide an unused variable in case we compile with neither INET nor INET6. 2008-11-06 09:41:31 +00:00
ep
esp o Move the MODULE_DEPEND() for cam(4) from the esp_sbus.c front-end to 2008-09-08 20:20:44 +00:00
et Don't leak DMA map if not freed. 2008-07-11 18:26:12 +00:00
ex Add preliminary support for the OLICOM OC2231 and OC2232. This is the 2008-08-27 04:11:03 +00:00
exca First cut at fixing memory mapping botch. Nobody must use the ray(4) 2009-01-05 21:00:22 +00:00
fatm Use bus_get_dma_tag() so fatm(4) works on platforms requiring it. 2008-09-30 18:52:43 +00:00
fb Third argument to the vi_mmap_t function is vm_paddr_t *. 2008-11-29 20:16:53 +00:00
fdc Eliminate an unused variable reported by coverity 2008-11-23 23:04:28 +00:00
fe - Use bus_foo() rather than bus_space_foo() and retire the bus tag and handle 2008-06-23 18:16:25 +00:00
firewire Delete fwohci_filt() as it is now unused 2009-02-03 17:13:37 +00:00
flash
fxp Always check whether dma map is valid before unloading the map. 2009-01-08 04:26:44 +00:00
gem - Restore the behavior of enabling the MII buffer for an internal 2008-08-23 15:03:26 +00:00
glxsb Fix two possible (but unlikely) NULL-pointer dereferences in glxsb(4). 2008-11-17 07:09:40 +00:00
hatm
hifn
hme - Use the revamped code from the gem(4) PCI front-end, which 2008-04-26 14:17:21 +00:00
hptiop - Spell cam correctly (scbus), this makes it possible to compile hptiop 2008-10-04 10:39:31 +00:00
hptmv
hptrr Fix a mistake made during the import of the driver. Previous versions of 2008-03-08 18:06:48 +00:00
hwpmc - Add support for nehalem/corei7 cpus. This supports all of the core 2009-01-27 07:29:37 +00:00
ic - Cleanup i8251 related defines. 2008-09-07 04:35:04 +00:00
ichsmb - Change ichsmb(4) to follow the format of all the other smbus controllers 2009-02-03 16:14:37 +00:00
ichwd Add more PCI IDs including those for ICH10. 2008-08-25 15:23:54 +00:00
ida
ie Use the new bus device_shutdown hook for performing the shutdown action 2008-08-01 21:33:07 +00:00
ieee488 Remove the distinction between device minor and unit numbers. 2008-05-29 12:50:46 +00:00
if_ndis Provide a NDIS tx power level converstion to/from net80211, this uses a loookup 2009-01-12 17:15:09 +00:00
iicbus Teach iic(4) the 'repeated start' I2C condition. This will be used by the 2009-01-26 13:53:39 +00:00
iir Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
io Remove D_NEEDGIANT from io(4). 2008-08-08 13:43:56 +00:00
ipmi Don't right-adjust the SMBus slave address for SSIF IPMI BMCs enumerated 2009-02-03 16:39:51 +00:00
ips
ipw Minor cleanup of vap create work: 2008-05-12 00:15:30 +00:00
iscsi/initiator Big update to the iSCSI initiator code. Highlights include IPv6 support, 2008-11-25 07:17:11 +00:00
isp Don't try reading the SXP_PINS_DIFF on the 10160 and 12160 SCSI 2008-12-15 21:42:38 +00:00
ispfw Make ispfw(4) play nice with individual firmware modules. 2008-11-11 00:14:10 +00:00
iwi Change the calling convention for ic_node_alloc to deal with 2008-06-07 18:38:02 +00:00
iwn o use the new association callback to notify the driver when joining a bss 2008-10-27 16:46:50 +00:00
ixgb
ixgbe Small nit I just noticed, a pre-decrement should be post. 2008-11-27 02:19:44 +00:00
jme Add HW MAC counter support for newer JMC250/JMC260 revisions. 2008-12-04 02:16:53 +00:00
joy Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
k8temp Check the return value of config_intrhook_establish(). 2008-11-29 14:26:22 +00:00
kbd Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
kbdmux Properly retun error core from kbdmux_modevent() 2009-02-02 21:34:04 +00:00
le - Use bus_{read,write}_*(9) instead of bus_space_{read,write}_*(9) etc 2008-09-24 21:26:46 +00:00
led Remove unit2minor() use from kernel code. 2008-09-26 14:19:52 +00:00
lge Plug memory leak in jumbo buffer allocation failure path. 2008-03-05 05:36:09 +00:00
lmc Retire the MALLOC and FREE macros. They are an abomination unto style(9). 2008-10-23 15:53:51 +00:00
malo Minor cleanup of vap create work: 2008-05-12 00:15:30 +00:00
mc146818
mca
mcd
md Add the possibility to specify "-o force" with "mdconfig -du". 2009-01-10 17:17:18 +00:00
mem
mfi Change Dell's gen2 catch-all from Dell PERC H700/H800 to Dell PERC Gen2 2008-12-15 17:11:40 +00:00
mge Handle mge(4) chip revision differences at run-time rather then compile time, 2009-01-08 11:09:27 +00:00
mii Renamed the FRAMELEN macro to TRUEPHY_FRAMELEN as for powerpc 2008-11-28 23:44:13 +00:00
mk48txx
mlx Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
mly Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
mmc o Define some symbols for a few items that are bare constants in the 2009-02-03 04:28:45 +00:00
mn Move mn over. One of the last stragglers in sys/pci. There's no 2008-11-02 17:04:54 +00:00
mpt Make the whole initiator mode part of mpt(4) endian-clean, 2009-01-07 21:52:47 +00:00
mse Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
msk Add hardware MAC statistics support. Also added some reserved 2009-01-16 08:06:55 +00:00
mxge Restore sfence semantics in mxge after the introduction 2008-11-24 19:00:57 +00:00
my
ncv
nfe Fix a typo. 2008-12-20 00:04:04 +00:00
nge
nmdm Make nmdm(4) use MPSAFE callouts. 2008-11-19 21:07:33 +00:00
nsp
null
nve Import rewritten nve device id's, which brings this more 2008-05-31 14:17:36 +00:00
nvram - Use an sx lock to serialize writes since they update the checksum. 2008-08-01 20:39:18 +00:00
nxge - bump __FreeBSD version to reflect added buf_ring, memory barriers, 2008-11-22 05:55:56 +00:00
ofw Set the wrong softc size when defining the ofw_iicbus class. Change it to 2009-01-20 14:06:30 +00:00
patm Remove unused variable. 2008-11-26 13:44:11 +00:00
pbio Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
pccard Define bits for memory mapping house keeping by bridges. 2009-01-05 20:58:41 +00:00
pccbb Update to the interrupt handling code: 2008-12-11 06:27:18 +00:00
pcf - Consolidate module version for the pcf module into just pcf.c instead 2008-08-05 17:39:37 +00:00
pci - Add a new ioctl to /dev/pci to fetch details on an individual BAR of a 2009-02-02 19:54:16 +00:00
pcn Call pcn_start_locked() instead of pcn_start() where the softc lock is 2009-01-03 10:56:10 +00:00
pdq
powermac_nvram Convert PowerPC AIM PCI and nexus busses to standard OFW bus interface. This 2008-10-14 14:54:14 +00:00
ppbus Trim what we expose to userland in <dev/ppbus/ppbconf.h> to just the 2009-02-03 19:49:21 +00:00
ppc Add locking to ppc and ppbus and mark the whole lot MPSAFE: 2009-01-21 23:10:06 +00:00
pst
puc - Add support for Moxa Technologies CP-168EL/PCIe card. 2009-01-27 09:38:44 +00:00
quicc Support for Freescale QUad Integrated Communications Controller. 2008-03-03 18:20:17 +00:00
ral o use the new association callback to notify the driver when joining a bss 2008-10-27 16:46:50 +00:00
random Make sure arc4random(9) is properly seeded when /etc/rc.d/initrandom returns. 2008-11-24 17:39:39 +00:00
ray Fix a number of style issues in the MALLOC / FREE commit. I've tried to 2008-10-23 20:26:15 +00:00
rc
re - Add support for 8110SCe part. Some magic registers were taken from 2009-01-20 20:22:28 +00:00
rndtest
rp Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
safe
sbni Disable the inline assembly crc32 routine and use the C version instead. 2008-09-10 18:42:19 +00:00
scc With rev 1.24 of sys/powerpc/powermac/macio.c, we now get a 2008-04-26 18:40:59 +00:00
scd
sdhci Add hw.sdhci.debug sysctl to control debug level. 2009-01-28 22:53:41 +00:00
sf
si Pass 1 of mpsafetty-ifying si(4). It compiles and has basic functionality, 2008-09-08 11:41:20 +00:00
siba Use some casting to get the right addresses. This is likely unwise 2008-09-26 05:40:56 +00:00
sio Allow device hints to wire the unit numbers of devices. 2008-11-18 21:01:54 +00:00
sis Fix a long standing VLAN tagged frame handling bug. 2008-12-09 04:30:47 +00:00
sk Prefer NULL over integer 0 for pointer type. 2008-02-14 01:25:01 +00:00
smbus - Change ichsmb(4) to follow the format of all the other smbus controllers 2009-02-03 16:14:37 +00:00
smc - Move ether_ifdetach earlier. 2008-06-17 05:48:42 +00:00
sn
snc Convert to new style PC Card front end driver. Add support for the 2008-08-07 20:55:20 +00:00
snp Slightly improve the design of the TTY buffer. 2009-02-03 19:58:28 +00:00
sound Fix bug in hint.hdac.X.config parsing. 2009-01-31 08:24:09 +00:00
speaker Remove unneeded checks of device unit number from speaker(4). 2009-01-25 09:20:59 +00:00
spibus
sr Fix a number of style issues in the MALLOC / FREE commit. I've tried to 2008-10-23 20:26:15 +00:00
ste Move the ste driver from sys/pci to sys/dev/ste. 2008-08-14 20:09:58 +00:00
stg
stge
streams Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
sym Use xpt_register_async() in order to remove code duplication. 2008-10-14 20:18:57 +00:00
syscons Add Unicode rendering to the teken demo application. 2009-01-21 19:43:10 +00:00
tdfx Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
ti Remove some remnant alpha hacks. 2008-04-26 14:13:48 +00:00
tl Move the tl driver form sys/pci to sys/dev/tl. 2008-08-14 20:02:34 +00:00
trm
tsec tsec: Refactor driver's structure. 2008-08-26 10:41:49 +00:00
twa Limit DMA memory to lower addressable 4GB, without this patch, we 2008-10-06 22:34:17 +00:00
twe Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
tx Use the parent device's DMA tag when creating our own DMA tags. This fixes 2008-09-12 14:41:53 +00:00
txp
uart De-hard code UART speed setting for Marvell SOCs when hw.uart.console is not 2009-01-08 13:24:25 +00:00
ubsec
usb Fix the input buffer at 1024. The previous calculated buffer size 2009-01-27 19:37:30 +00:00
usb2 - Keep the same sorting on usb_errstr_table as the enum. 2009-02-03 16:00:20 +00:00
utopia
vge Fix Rx/Tx checksum offload ioctl handling. Now checksum offload 2008-11-13 04:11:01 +00:00
vkbd Remove unit2minor() use from kernel code. 2008-09-26 14:19:52 +00:00
vr It seems there are still issues on multicast perfect filtering. 2008-12-12 01:26:11 +00:00
vx MFp4: Network Adapter is redundant. 2008-08-25 05:20:17 +00:00
watchdog
wb Move wb driver from sys/pci to sys/dev/wb. 2008-08-14 21:26:29 +00:00
wds
wi Remove opt_wi.h 2008-08-27 05:39:44 +00:00
wl
wpi o use the new association callback to notify the driver when joining a bss 2008-10-27 16:46:50 +00:00
xe Style(9) xe(4). The MD5 sums are different, but comparing the dissassemblies 2008-06-04 20:26:57 +00:00
xen Adds support for SCTP checksum offload. This means 2009-02-03 11:00:43 +00:00
xl Move the xl driver form sys/pci to sys/dev/xl for consistency. 2008-08-10 09:45:52 +00:00