freebsd-dev/sys/dev
Marko Zec 44e33a0758 Change the initialization methodology for global variables scheduled
for virtualization.

Instead of initializing the affected global variables at instatiation,
assign initial values to them in initializer functions.  As a rule,
initialization at instatiation for such variables should never be
introduced again from now on.  Furthermore, enclose all instantiations
of such global variables in #ifdef VIMAGE_GLOBALS blocks.

Essentialy, this change should have zero functional impact.  In the next
phase of merging network stack virtualization infrastructure from
p4/vimage branch, the new initialization methology will allow us to
switch between using global variables and their counterparts residing in
virtualization containers with minimum code churn, and in the long run
allow us to intialize multiple instances of such container structures.

Discussed at:	devsummit Strassburg
Reviewed by:	bz, julian
Approved by:	julian (mentor)
Obtained from:	//depot/projects/vimage-commit2/...
X-MFC after:	never
Sponsored by:	NLnet Foundation, The FreeBSD Foundation
2008-11-19 09:39:34 +00:00
..
aac Whitespace cleanup. 2008-09-12 18:15:12 +00:00
acpi_support Add support for Asus A8Sr notebooks. 2008-11-04 11:52:50 +00:00
acpica Allow device hints to wire the unit numbers of devices. 2008-11-18 21:01:54 +00:00
adb Probe ADB miscellaneous devices (ID 7) instead of stopping at ID 6. This 2008-11-12 17:33:36 +00:00
adlink Set D_NEEDGIANT. 2007-08-04 17:43:11 +00:00
advansys Prepare for future integration between CAM and newbus. xpt_bus_register 2007-06-17 05:55:54 +00:00
ae - Add driver for Attansic L2 FastEthernet controller found on 2008-10-03 10:31:31 +00:00
age Remove informational messages left. These messages were intended to 2008-11-07 07:02:28 +00:00
agp Correctly handle Intel g33 chips and add support for g45 chips 2008-10-02 20:29:45 +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 Fix a compile error from the last change. 2007-06-17 15:21:09 +00:00
aic Prepare for future integration between CAM and newbus. xpt_bus_register 2007-06-17 05:55:54 +00:00
aic7xxx Make ddb command registration dynamic so modules can extend 2008-09-15 22:45:14 +00:00
ale Add ale(4), a driver for Atheros AR8121/AR8113/AR8114 PCIe ethernet 2008-11-12 09:52:06 +00:00
amd Prepare for future integration between CAM and newbus. xpt_bus_register 2007-06-17 05:55:54 +00:00
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 Add support for MacBook Air. (not tested) 2008-09-07 18:15:34 +00:00
asr Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
ata Only call dma.unload() if initialized. 2008-10-27 09:26:24 +00:00
ath Fix checks for fast frames negotiation. ni_ath_flags holds the 2008-10-30 16:22:04 +00:00
atkbdc Rewrite Synaptics touchpads support with the following goals in mind: 2008-10-14 17:48:36 +00:00
auxio
bce Correct a logic error when testing BCE_PHY_SERDES_FLAG. 2008-11-19 03:24:35 +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 Do as the Linux tg3 driver does and enable MSI support also 2008-10-27 22:10:01 +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 Prepare for future integration between CAM and newbus. xpt_bus_register 2007-06-17 05:55:54 +00:00
cardbus Overhaul of CIS parsing, next step: keep a cached copy of the CIS, 2008-11-17 01:32:29 +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 unused consdev structure fields. 2008-10-27 11:45:31 +00:00
cfi Add a driver for flash memory that implements to the Common Flash 2008-10-25 06:18:12 +00:00
ciss Work again to fix the interrupt masking problems. We now recognize 2008-08-29 01:23:16 +00:00
cm Spelling fix for interupt -> interrupt 2007-10-12 06:03:46 +00:00
cmx Commit cmx(4), a driver for Omnikey CardMan 4040 PCMCIA smartcard readers. 2008-03-06 08:09:45 +00:00
coretemp style(9): remove FreeBSD CVS ID from the initial license comment. 2008-05-14 10:02:25 +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 Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
cy
dc cosmetic changes and style fixes 2008-09-30 20:53:15 +00:00
dcons Integrate the new MPSAFE TTY layer to the FreeBSD operating system. 2008-08-20 08:31:58 +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
dpt Prepare for future integration between CAM and newbus. xpt_bus_register 2007-06-17 05:55:54 +00:00
drm Fix error in busmaster enable logic 2008-10-27 21:24:34 +00:00
e1000 Hide AF_INET specific ioctl handling under #ifdef INET. 2008-11-06 11:11:25 +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 - Fix exca_(io|mem)_map() to return proper errno values. 2007-03-23 17:15:07 +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 Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
fdc - Revive fdc(4) per-device flag 0x10, which was removed in r1.284[1]. 2008-11-15 01:43:34 +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 Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
flash Rename the kthread_xxx (e.g. kthread_create()) calls 2007-10-20 23:23:23 +00:00
fxp Reuse the mbuf that was just retrieved from the receive ring if mbuf 2008-03-22 18:13:39 +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 Give MEXTADD() another argument to make both void pointers to the 2008-02-01 19:36:27 +00:00
hifn Overhaul driver/subsystem api's: 2007-03-21 03:42:51 +00:00
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 Rename the kthread_xxx (e.g. kthread_create()) calls 2007-10-20 23:23:23 +00:00
hptrr Fix a mistake made during the import of the driver. Previous versions of 2008-03-08 18:06:48 +00:00
hwpmc Print PMC widths in the initialization announcement. 2008-11-16 04:21:59 +00:00
ic - Cleanup i8251 related defines. 2008-09-07 04:35:04 +00:00
ichsmb - Use bus_foo() rather than bus_space_foo() and remove bus space tag/handle 2008-06-06 18:29:56 +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 Fake the assoc id so that ndis can work on the latest net80211. 2008-11-11 03:36:15 +00:00
iicbus Streamline #include sections in ds133x and ds1672 drivers. This unbreaks the 2008-09-08 15:49:07 +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 Fix typo where the code was missing the "IPMICTL_RECEIVE_MSG_32" condition 2008-11-14 01:53:10 +00:00
ips
ipw Minor cleanup of vap create work: 2008-05-12 00:15:30 +00:00
iscsi/initiator Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
isp Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +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 This updates the ixgbe driver to Intel internal version 1.4.7 2008-07-30 18:15:18 +00:00
jme Make sure to read the last byte of EEPROM descriptor. Previously 2008-10-14 00:54:15 +00:00
joy Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
k8temp Fix the sysctl function parameters. We were only querying Sensor 0. 2008-09-03 13:34:31 +00:00
kbd Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
kbdmux Use Giant for kbdmux(4) locking. This is to workaround the problem 2008-09-22 22:08:43 +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 Export mc146818_def_{read,write}() so the front-end can make use 2007-06-16 23:10:00 +00:00
mca
mcd
md Decontextualize the couplet VOP_GETATTR / VOP_SETATTR as the passed thread 2008-08-28 15:23:18 +00:00
mem
mfi Fix the maximum transfer size for mfi(4) disk devices to not exceed the 2008-11-17 23:30:19 +00:00
mge Marvell Gigabit Ethernet controller driver. 2008-10-14 07:24:18 +00:00
mii Use auto-negotiation for manual media type selection. This fixes 2008-10-25 06:39:17 +00:00
mk48txx Revisit the watchdogs: Resetting the error to EINVAL after failing to set the 2007-03-27 21:03:37 +00:00
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 Allow card reader bridge driver to report maximum supported transfer size. 2008-10-29 20:01:26 +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 Allocate a single CCB at the start of the main loop of the RAID monitoring 2008-07-21 18:43:02 +00:00
mse Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
msk If mbuf is not writable get a writable copy before invoking 2008-09-30 04:52:30 +00:00
mxge Update to Myri10GE Firmware 1.4.36. 2008-10-23 20:07:08 +00:00
my Spelling fix for interupt -> interrupt 2007-10-12 06:03:46 +00:00
ncv
nfe Add hardware MAC statistics support. Register information was 2008-10-03 03:58:16 +00:00
nge Fix function prototype for device_shutdown method. 2007-11-22 02:45:00 +00:00
nmdm Integrate the new MPSAFE TTY layer to the FreeBSD operating system. 2008-08-20 08:31:58 +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 Merge Neterion if_nxge driver version 2.0.9.11230 with the following 2007-10-29 14:19:32 +00:00
ofw Remove unused consdev structure fields. 2008-10-27 11:45:31 +00:00
patm Give MEXTADD() another argument to make both void pointers to the 2008-02-01 19:36:27 +00:00
pbio Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
pccard Remove opt_wi.h from module and fix typo in pccarddevs. 2008-08-27 05:43:46 +00:00
pccbb Return BUS_PROBE_GENERIC rather BUS_PROBE_DEFAULT for generic CBB we match. 2008-10-02 22:50:11 +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 ADMA, SATA and SAS mass storage subclasses reporting. 2008-11-13 19:57:33 +00:00
pcn Move pcn driver from sys/pci to sys/dev/pcn. 2008-08-14 20:34:46 +00:00
pdq Fix preprocessor code to check for a symbol being defined prior to checking 2007-06-08 01:49:04 +00:00
powermac_nvram Convert PowerPC AIM PCI and nexus busses to standard OFW bus interface. This 2008-10-14 14:54:14 +00:00
ppbus Various whitespace and style fixes. 2008-11-16 17:42:02 +00:00
ppc Various whitespace and style fixes. 2008-11-16 17:42:02 +00:00
pst
puc Add an entry for the "SIIG Cyber 4 PCI 16550", which is a four-port card 2008-10-25 10:55:49 +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 Correct a random value disclosure in random(4). 2007-11-29 16:06:12 +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 Read ethernet address from ID registers for RTL8102E/RTL8102EL as 2008-09-06 00:25:16 +00:00
rndtest
rp Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
safe bandaid crash as I have no time to research the issue and the driver 2007-11-03 19:10:14 +00:00
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 Allow card reader bridge driver to report maximum supported transfer size. 2008-10-29 20:01:26 +00:00
sf Fix build. 2008-01-21 09:51:28 +00:00
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 There actually were bugs in the original handling that I missed last 2008-08-23 15:34:31 +00:00
sk Prefer NULL over integer 0 for pointer type. 2008-02-14 01:25:01 +00:00
smbus - Store the device_t of the smbX device in the softc. 2008-06-06 18:45:32 +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 Reintroduce the snp(4) driver. 2008-11-05 15:04:03 +00:00
sound Correct association 0 handling. 2008-11-15 09:39:00 +00:00
speaker Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +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 Use m_collapse(9) to collapse mbuf chains instead of relying on 2008-01-18 08:32:08 +00:00
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 Undo revision 185013 until better solution is found. 2008-11-17 20:33:13 +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 Prepare for future integration between CAM and newbus. xpt_bus_register 2007-06-17 05:55:54 +00:00
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 Read MII_ANAR register and get common denominator ability. 2007-11-16 10:32:10 +00:00
uart Fix detaching of uart(4) devices. 2008-10-23 19:11:44 +00:00
ubsec Overhaul driver/subsystem api's: 2007-03-21 03:42:51 +00:00
usb src/sys/dev/usb2/controller/uss820dci_pccard.c 2008-11-19 08:56:35 +00:00
usb2 src/sys/dev/usb2/controller/uss820dci_pccard.c 2008-11-19 08:56:35 +00:00
utopia Fix a use-after-free. 2007-12-05 19:32:59 +00:00
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 Fix typo. It restuled in activating unwanted Rx filtering as well 2008-11-17 00:50:59 +00:00
vx MFp4: Network Adapter is redundant. 2008-08-25 05:20:17 +00:00
watchdog Revisit the watchdogs: Resetting the error to EINVAL after failing to set the 2007-03-27 21:03:37 +00:00
wb Move wb driver from sys/pci to sys/dev/wb. 2008-08-14 21:26:29 +00:00
wds Prepare for future integration between CAM and newbus. xpt_bus_register 2007-06-17 05:55:54 +00:00
wi Remove opt_wi.h 2008-08-27 05:39:44 +00:00
wl Don't call bus_deactivate_resource() explicitly before calling 2007-03-21 03:38:37 +00:00
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 Remove unused consdev structure fields. 2008-10-27 11:45:31 +00:00
xl Move the xl driver form sys/pci to sys/dev/xl for consistency. 2008-08-10 09:45:52 +00:00