Commit Graph

464 Commits

Author SHA1 Message Date
riastradh 32dd758701 Update ffs, ext2fs, and tmpfs module makefiles to add *_rename.c.
ok martin
2012-05-10 07:51:34 +00:00
christos f7b1fda082 split the coda module in a device one, and a vfs one so that it works. 2012-04-26 03:03:53 +00:00
pgoyette c30f8ca413 Actually create the if_axe module - driver was modularized a while ago. 2012-04-25 13:55:17 +00:00
pgoyette db696edd06 Actually create the dbcool(4) module. Driver was modularized a while ago. 2012-04-25 04:49:46 +00:00
pgoyette ca34f38e2b Create the module for sdtemp (driver itself was modularized some time ago) 2012-04-25 03:44:16 +00:00
cegger fbb3a1d6f5 replace amdtempbus with amdnb_miscbus.
pointed out by pgoyette@
2012-04-13 13:36:57 +00:00
ttoth 4024b54911 using chtype on media instead of vtype
debug.c deleted
2012-04-12 15:31:01 +00:00
joerg 0e8643658c Don't pass assembler flags to genassym, it doesn't compile. 2012-03-25 06:55:19 +00:00
nonaka db4c04c984 Added urtwn(4), a driver for Realtek RTL8188CU/RTL8192CU USB IEEE 802.11b/g/n wireless network devices. 2012-03-25 00:11:16 +00:00
joerg 7fb18a4a84 Also kill the module build system for ksem. 2012-03-11 01:30:56 +00:00
joerg 99c3eea80c P1003_1B_SEMAPHORE is no longer optional. 2012-03-10 21:51:48 +00:00
rmind ad12c77015 Remove COMPAT_SA / KERN_SA. Welcome to 6.99.3!
Approved by core@.
2012-02-19 21:05:51 +00:00
rmind 2d3c715fba - Split NPF rule procedure code into a separate module (no functional changes).
- Simplify some code, add more comments, some asserts.
- G/C unused rule hook code.
2012-02-06 23:30:14 +00:00
christos 8364b8d242 -D flags belong in CPPFLAGS 2012-02-05 18:46:04 +00:00
christos 0b8fb5a58e argh, there was even more debugging! 2012-02-04 18:39:21 +00:00
christos 7eb6e48a1e No -g on the default install, if you want debugging you know where to put it. 2012-02-04 18:38:13 +00:00
christos 66ecc48cbd no -g on default install
if you want debugging, you know where to put it.
2012-02-04 18:35:56 +00:00
christos e7304d92f3 Remove -g -O0. It does not work on amd64 at all.
If you want debugging on, add it yourself.
2012-02-04 18:28:53 +00:00
tls 7b0b7dedd9 Entropy-pool implementation move and cleanup.
1) Move core entropy-pool code and source/sink/sample management code
   to sys/kern from sys/dev.

2) Remove use of NRND as test for presence of entropy-pool code throughout
   source tree.

3) Remove use of RND_ENABLED in device drivers as microoptimization to
   avoid expensive operations on disabled entropy sources; make the
   rnd_add calls do this directly so all callers benefit.

4) Fix bug in recent rnd_add_data()/rnd_add_uint32() changes that might
   have lead to slight entropy overestimation for some sources.

5) Add new source types for environmental sensors, power sensors, VM
   system events, and skew between clocks, with a sample implementation
   for each.

ok releng to go in before the branch due to the difficulty of later
pullup (widespread #ifdef removal and moved files).  Tested with release
builds on amd64 and evbarm and live testing on amd64.
2012-02-02 19:42:57 +00:00
jakllsch f4a9de15e0 Add lm, lm_isa_common, lm_isa, lm_wbsio and wbsio modules to the x86 build. 2012-01-17 16:59:37 +00:00
jakllsch 4dd99ce884 Modularize lm_isa and lm_wbsio, splitting the common part out
into a 3rd module.  Add wbsio module too.
2012-01-17 16:50:07 +00:00
jym 9795ba65d8 Hook secmodel_extensions(9) to modules build. 2011-12-04 23:13:54 +00:00
rmind fad8b2d7a1 - Rework and improve TCP state tracking.
- Fix regressions after IPv6 patch merge.

Note: npfctl(8) rework will come soon.
2011-11-29 20:05:30 +00:00
ahoka f9fadebd59 Add module glue for CHFS. 2011-11-24 15:52:24 +00:00
riz 262c7a9290 Build and install new in-kernel iscsi initiator kernel module and associated
binaries (iscsid, iscsictl) if MKISCSI != no.  Initiator can also be built
into a kernel by adding 'pseudo-device iscsi' in kernel configuration.
2011-11-15 16:50:43 +00:00
tron 2d18c9fb9f Add "npf_alg_icmp" kernel module. 2011-11-06 13:26:54 +00:00
tron 0783b12674 Fix breakage caused by last commit. "npf_alg_icmp.c" is supposed to be
its own kernel module.
2011-11-06 13:04:44 +00:00
tron 2f22aacfed Define "INET6" to get IPv6 support. 2011-11-06 12:07:21 +00:00
tron ceee944e91 Build "npf" module. 2011-11-06 11:51:23 +00:00
tron 74975501ed Update list of source files. 2011-11-06 10:35:50 +00:00
jmcneill d99f77faf2 mark vm_reg members as volatile instead of building this with -O0 2011-10-20 20:13:54 +00:00
jmcneill 71d8676fc4 add & enable vmt module 2011-10-18 00:33:47 +00:00
jmcneill 233dd477e3 add a port of the VMware Tools driver vmt(4) from OpenBSD 2011-10-17 22:39:22 +00:00
plunky f65a48c2ec max WARNS is 4 2011-10-13 17:23:28 +00:00
jmcneill c1a45d4469 Remove an invalid include path from CPPFLAGS 2011-10-03 23:39:05 +00:00
jmcneill 5a065f0064 fix build for kernels with i2c host controller drivers but no iic(4)
driver present
2011-10-03 22:27:23 +00:00
jmcneill 2e7ee9e5d8 rename ioconf file to match module name, and remove an invalid include path
from cppflags
2011-10-02 21:14:22 +00:00
mbalmer f2b8ed7ad8 Build iic(4) and gpioiic(4) as modules. 2011-10-02 12:13:08 +00:00
mbalmer 8e70f7be4f Modules for iic(4) and gpioiic(4). 2011-10-02 11:43:30 +00:00
sjg 3a3c1d94e3 Add filemon to the modules we build. 2011-09-29 17:40:19 +00:00
mbalmer d3aee14626 Move SYSCTL_USE_DESCR to a better place. 2011-09-11 18:38:02 +00:00
mbalmer 7821aff47b Include sysctl descriptions when building modules. 2011-09-10 08:27:06 +00:00
mbalmer 468a063f63 Add CWARNFLAGS+= -Wno-unused for clang. 2011-08-31 14:42:18 +00:00
mbalmer 2e4cf7046d Link the gpioow(4) and onewire(4) modules to the build and add them to the
lists.
2011-08-31 13:25:49 +00:00
mbalmer 59f6ae0da4 gpioow(4) and onewire(4) can be build as modules. Not linked to the build. 2011-08-31 12:46:36 +00:00
jruoho df2580b9bc Add Zarlink ZL10353 DVB demodulator (or as it is now know, Intel CE623x). 2011-08-29 11:14:15 +00:00
jmcneill 1f02a7ab53 build pf module with WARNS=3, and remove the need for -Wno-shadow 2011-08-29 09:50:04 +00:00
jmcneill 97d971731f add mach64drm, mgadrm, r128drm, savagedrm, sisdrm, and tdfxdrm modules 2011-08-28 16:19:07 +00:00
jmcneill 5494668f55 Split out ati_pcigart into a separate module so it can be shared with r128drm 2011-08-28 15:56:21 +00:00
jmcneill eb1862a454 WARNS=3 is the default 2011-08-28 15:48:19 +00:00
jmcneill 54d6e22c5d set default WARNS for modules to 3 -- the only one that needs < 3 now is pf 2011-08-28 15:40:49 +00:00
pgoyette a948210b56 Fix the ioconf files. We can't include dev/usb/files.pci and the
attachment should be usbdevif as defined in files.usb
2011-08-25 02:07:38 +00:00
pgoyette 81d8330c12 Remove left-over debug line 2011-08-23 12:55:50 +00:00
pgoyette 99deda018d Module build glue for if_rum and if_axe 2011-08-23 12:54:05 +00:00
jakllsch d3b38f366f Apparently we need to use the attribute and not the device name as the pseudo-root. 2011-08-20 19:53:45 +00:00
christos 8a88450abf remove unneeded non-literal format string 2011-08-19 08:26:20 +00:00
jakllsch 271ee63da4 Catch up to current reality. 2011-08-18 20:57:11 +00:00
christos 4d92fa6ddb document non-literal string format 2011-08-18 17:02:49 +00:00
mbalmer b50c50a270 gpio(4) and gpiosim(4) can now be built and used as modules. While here,
make some functions static.
2011-08-12 08:00:52 +00:00
mbalmer 1d8ccccd63 pwdog is not for all platforms, build only on i386, x86_64, and sparc64 2011-08-11 12:03:06 +00:00
mbalmer 352c784990 pwdog(4) is a device driver for QUANCOM Electronic PWDOG1 PCI
attached watchdog timers.
2011-08-11 07:33:24 +00:00
jruoho b7ff5db1d4 Build acpiwdrt(4) as a module on x86. 2011-08-09 12:16:03 +00:00
jruoho 20073051ea Two placeholder comments. 2011-08-09 12:09:55 +00:00
jmcneill fb32363eae include cx24227, lg3303, mt2131, nxt2k, tvpll, xc3028, coram, cxdtv, and emdtv
modules in x86 build
2011-08-09 11:12:02 +00:00
jruoho 4c658c19b0 As wmieeepc(4) was added to amd64 GENERIC, build it also as a amd64 module. 2011-08-09 08:36:05 +00:00
jmcneill fb95eabd74 modify the dtv device api so hardware drivers can be loaded independently
of the dtv module
2011-08-09 01:42:24 +00:00
jmcneill 9ee20799ca add mt2131, cx24227, and coram module glue 2011-08-04 22:26:07 +00:00
pgoyette 39943f3c4f Allow multiple sdtemp sensors to attach, at all valid addresses 2011-08-02 18:52:35 +00:00
pgoyette 55cfe2860e Allow unit numbers to float, rather than tying to specific i2c address 2011-08-02 18:51:35 +00:00
joerg 9a72c11fab Remove a number of now unnecessary -no-integrated-as cases. 2011-08-02 17:22:51 +00:00
pgoyette c3df63d89d Add build glue for modular spdmem(4) driver, and enable it 2011-08-01 03:51:05 +00:00
jmcneill 8037f64f1b build and install finsio module on i386 and amd64 2011-07-31 17:55:41 +00:00
jmcneill c7c1db7e8e add finsio module glue 2011-07-31 17:54:01 +00:00
jmcneill 66ca8ad7c3 add smsc module glue 2011-07-31 16:19:21 +00:00
jmcneill afdad53ffc add module glue for dbcool 2011-07-31 16:05:28 +00:00
jmcneill 17204a8fdc module glue for sdtemp 2011-07-31 16:00:21 +00:00
jmcneill d09db892e8 build and install itesio module on i386 and amd64 2011-07-29 21:01:43 +00:00
jmcneill bedb04943b module build glue for itesio 2011-07-29 20:59:25 +00:00
enami b246d08e78 Build v7fs module on all architecture rather than only on i386. 2011-07-19 23:13:31 +00:00
tron caeab679ca Build 7th Edition(V7) File System as a kernel module. 2011-07-19 19:19:09 +00:00
jmcneill 54696cabe9 irmce module glue 2011-07-19 12:23:51 +00:00
jmcneill 6f708f8d76 add nsclpcsio module to i386 build 2011-07-15 21:08:48 +00:00
jmcneill ac535e1004 add nsclpcsio module glue 2011-07-15 20:57:01 +00:00
jmcneill ee71f9a61a add dtv_intlog10 implementation, from apb@ 2011-07-15 20:27:41 +00:00
jmcneill 6f144888fd module glue for nxt2k, tvpll, cxdtv 2011-07-14 23:50:12 +00:00
matt 82c39ee7c3 files.dtv is included by conf/files 2011-07-14 18:19:49 +00:00
jmcneill 5476439d3f build dtv_demux.c 2011-07-13 22:43:33 +00:00
jruoho b5dc3d4af2 A driver for HP 3D DriverGuard; a LIS3LV02DL-based accelerometer. Tested on
HP NC4400. Like aps(4), this is commented out in the GENERIC kernels.
2011-07-13 07:52:48 +00:00
jmcneill f00b760ccb add module glue for lg3303, xc3028, emdtv 2011-07-11 18:04:32 +00:00
jmcneill 2fb2064b5f build auvitek_dtv.c too 2011-07-09 15:08:54 +00:00
jmcneill 63aa7fdcda build dtv module 2011-07-09 14:56:43 +00:00
jmcneill 729d6c10cf module glue for dtv 2011-07-09 14:53:37 +00:00
joerg b187f964f6 Use integrated assembler with clang for Via PadLock. 2011-07-04 16:20:45 +00:00
ahoka 0e8f635bc2 Refactor flash and nand driver, so we can reuse the io thread code
in the future nor driver (and any other future driver).

Also simplify some of the code in the process, eg. saner flash attachment.
2011-06-28 18:14:11 +00:00
matt a2ad2b75a6 ibm4xx now uses <powerpc/pci_machdep.h> 2011-06-22 18:17:17 +00:00
matt 5b497c25ae IBM4xx now uses the pic-based intr.h 2011-06-20 20:18:43 +00:00
mrg a2c4975d63 build evbppc modules in 3 different flavours:
- oea (default)
	- ibm4xx
	- booke

this, together with earlier machine_module[] work, should allow evbppc
platforms to use modules.
2011-06-15 09:45:58 +00:00
jruoho ced73275c5 Modularize hpet(4). Works nicely with the multiple bus locations. 2011-06-15 08:19:43 +00:00
jruoho c6e5cf85e6 Modularize amdtemp(4). 2011-06-15 03:22:39 +00:00
jruoho ef74b36d13 Rewrite the aibs(4) driver in order to support new models. Draws from the
revision 1.6 (claudio@) of the OpenBSD's equivalent driver. Tested by mrg@.
2011-06-12 07:25:43 +00:00
joerg 67ef870a8e Disable integrated assembler for clang until the RNG instructions are
supported
2011-06-10 04:45:41 +00:00
joerg a216da57a6 Default to -Wno-sign-compare -Wno-pointer-sign for clang.
Push -Wno-array-bounds down to the cases that depend on it.
Selectively disable warnings for 3rd party software or non-trivial
issues to be reviewed later to get clang -Werror to build most of the
tree.
2011-05-26 12:56:24 +00:00
joerg 316b3ac0de LLVM's assembler parser doesn't support .code32 yet, so disable it as
needed.
2011-05-20 13:11:40 +00:00
joerg 45f776be20 LLVM's assembler parser doesn't support .code32 yet, so disable it. 2011-05-20 13:08:07 +00:00
joerg e958063324 Remove IRIX emulation 2011-04-26 16:36:40 +00:00
yamt efc12d7878 re-enable tprof_amdpmi 2011-04-14 15:45:27 +00:00
bouyer b41e8c3e3d Fix source list for ffs module. 2011-03-13 18:23:30 +00:00
ahoka be9d16386d + nand_micron.c 2011-03-09 10:05:28 +00:00
bouyer 063f96f3c2 merge the bouyer-quota2 branch. This adds a new on-disk format
to store disk quota usage and limits, integrated with ffs
metadata. Usage is checked by fsck_ffs (no more quotacheck)
and is covered by the WAPBL journal. Enabled with kernel
option QUOTA2 (added where QUOTA was enabled in kernel config files),
turned on with tunefs(8) on a per-filesystem
basis. mount_mfs(8) can also turn quotas on.

See http://mail-index.netbsd.org/tech-kern/2011/02/19/msg010025.html
for details.
2011-03-06 17:08:10 +00:00
jruoho 120b4f01cf Add module build glue for odcm(4). 2011-03-04 05:02:47 +00:00
jruoho 494badeb16 Move acpicpu(4) from "acpinodebus" to "cpufeaturebus". 2011-02-27 17:10:33 +00:00
ahoka 2b6ee22130 Import the Flash and NAND subsytem code contributed by the University
of Szeged, Hungary.

The commit includes:
 - Flash layer, which gives a common API to access flash devices
 - NAND controller subsystem for the flash layer
 - An example OMAP driver which is used on BeagleBoard or alike ARM boards
2011-02-26 18:07:13 +00:00
jruoho e61737f29d Build glue for viac7temp(4). 2011-02-24 14:08:51 +00:00
jruoho b365a799cf Add build glue for powernow(4). 2011-02-24 11:22:34 +00:00
jruoho 53d3e21904 Build glue for est(4). 2011-02-23 11:55:36 +00:00
jmcneill d584463683 module glue for alc@pci 2011-02-23 00:36:51 +00:00
cegger fd97aeb561 catch up to AR9285 changes 2011-02-21 11:16:47 +00:00
jmcneill 6a0ee33bc0 add VirtualBox DRM driver 2011-02-20 15:40:21 +00:00
jruoho bd7da44ea9 Add build glue for coretemp(4). 2011-02-20 13:48:25 +00:00
jmcneill b7d5e19d33 catch up to AR9280 changes 2011-02-20 11:26:33 +00:00
jruoho 697c18cac8 Build fujbp(4), fujhk(4), and wmieeepc(4) as modules. 2011-02-20 08:37:50 +00:00
jmcneill b1c34fd089 add module glue for ath_hal, ath, and if_ath_pci 2011-02-20 03:58:33 +00:00
jmcneill 5b80a0ef30 build padlock module on i386 2011-02-19 14:28:07 +00:00
jmcneill dc1291ac90 add padlock module glue 2011-02-19 14:25:30 +00:00
jmcneill 9dca98e3b3 add via_dmablit 2011-02-18 14:26:52 +00:00
jmcneill 7f1c70f60c add drm_sman, drm_mm, drm_hashtab 2011-02-18 14:26:40 +00:00
jmcneill 3d85f4c008 get rid of #ifdef __FreeBSD__ sections
use ioconf & add a module dependency on "drm"
2011-02-18 02:00:36 +00:00
jmcneill 6c4919473a add panic.kmod, an easy way to trigger a panic. takes a 'how' argument
to specify how to trigger the panic:
 modload -s how=panic panic.kmod   <-- just calls panic()
 modload -s how=nullptr panic.kmod <-- null ptr deref
if how isn't specified, it defaults to 'panic'. feel free to add more.
2011-02-18 01:07:20 +00:00
jruoho 2b0b13f21f Use ioconf for the module declarations. 2011-02-16 08:35:51 +00:00
jruoho b9f301d5a2 Convert the homegrown module declarations to use ioconf. 2011-02-16 08:19:56 +00:00
jruoho 7e7ec3e920 Convert the ioconf files to lower case for consistency. No functional change. 2011-02-16 08:01:52 +00:00
jruoho 7e0b5b7921 Add a skeleton driver for Asus EeePC acpiwmi(4) mappings. 2011-02-16 07:30:26 +00:00
jmcneill 716271120b build hdafg_dd.c 2011-02-12 15:15:56 +00:00
jmcneill 28ad83d2d7 rename hdaudio_afg.c to hdafg.c 2011-02-12 15:01:00 +00:00
yamt dd0251ed9d add a directory which i forgot to add with sys/modules/Makefile rev.1.60 2011-02-06 02:28:50 +00:00
christos 46329988a2 fix build! 2011-02-05 22:40:49 +00:00
yamt 23ff4c699e build tprof_amdpmi 2011-02-05 14:08:13 +00:00
haad 3bb48ba615 Add support for building pud as module. Do it in a same way how putter is
done.
2011-01-28 23:54:28 +00:00
haad 61583090b2 Add support for compiling ZFS and Solaris modules as RUMP libraries. Add
some locking and rumpcopy primitives and refactor module building Makefiles
to work with both RUMP and kernel modules. This is first part of adding
support for regular test of zfs on NetBSD to hunt some bugs and make it
stable.

Ok by pooka@.
2011-01-18 22:21:22 +00:00
pooka 4ded7232b9 Put async i/o compat routines in a separate source module from the
ones related to clock and process management.
2011-01-17 15:57:04 +00:00
jmcneill 4eb5cd5a57 add acpiwdrt module glue 2011-01-17 15:49:56 +00:00
jmcneill 89497f8548 build and install aps module on i386 and amd64 2011-01-16 01:13:10 +00:00
jmcneill ce4e6d55a3 support building aps(4) as a module 2011-01-16 01:07:32 +00:00
jruoho 37f5de3ab8 Add a dummy-driver for ACPI fans. 2011-01-09 15:12:33 +00:00
jmcneill c82905f94c add hdaudio and hdafg modules 2011-01-07 15:32:11 +00:00
jmcneill 413c4ec645 support building cas(4) as a module 2011-01-07 11:17:22 +00:00
jruoho b1ee05a7c3 Add build files for acpipmtr(4) module. 2011-01-05 20:15:52 +00:00
pgoyette a8cb084374 Define KERN_SA when building the module 2011-01-04 20:52:53 +00:00
jruoho a7f6c722a1 Remove DIAGNOSTIC. 2010-12-30 18:38:50 +00:00
jmcneill 393a0deb05 some platforms don't have bus_dma, so only build these modules on x86 2010-12-29 13:05:42 +00:00
jmcneill b678bc7497 add "ir" and "cir" modules 2010-12-28 14:45:30 +00:00
jmcneill 201870c31a use ioconf 2010-12-28 00:49:21 +00:00
jmcneill 1a0062ed4f hook xc5k, au8522, and auvitek into build 2010-12-27 15:48:28 +00:00
jmcneill eabcfbccce xc5k, au8522, and auvitek modules 2010-12-27 15:43:41 +00:00
rmind 628e094cdc NPF checkpoint:
- Add support for session saving/restoring.
- Add packet logging support (can tcpdump a pseudo-interface).
- Support reload without flushing of sessions; rework some locking.
- Revisit session mangement, replace linking with npf_sentry_t entries.
- Add some counters for statistics, using percpu(9).
- Add IP_DF flag cleansing.
- Fix various bugs; misc clean-up.
2010-12-18 01:07:25 +00:00
haad e5d36b6393 Disable errors reported by unknown pragmas in dtrace module. 2010-12-14 23:27:47 +00:00
ahoka 6c3ce79660 nsmb module makefile 2010-12-10 19:46:40 +00:00
rmind 97b932f123 NPF checkpoint:
- Add proper TCP state tracking as described in Guido van Rooij paper,
  plus handle TCP Window Scaling option.
- Completely rework npf_cache_t, reduce granularity, simplify code.
- Add npf_addr_t as an abstraction, amend session handling code, as well
  as NAT code et al, to use it.  Now design is prepared for IPv6 support.
- Handle IPv4 fragments i.e. perform packet reassembly.
- Add support for IPv4 ID randomization and minimum TTL enforcement.
- Add support for TCP MSS "clamping".
- Random bits for IPv6.  Various fixes and clean-up.
2010-11-11 06:30:39 +00:00
jruoho e2fa7d0097 Add asus(x) and hpqlb(4). 2010-10-26 05:42:51 +00:00
jruoho a2a33b95b3 Build asus(x) and hpqlb(4) as modules on x86. 2010-10-26 05:36:49 +00:00
jruoho 8eae6f006a Bump WARNS to 4. 2010-10-26 04:37:33 +00:00
jruoho 6b1e267f66 Refactor slightly and bump WARNS to 4. 2010-10-26 03:11:10 +00:00
jnemeth 6e39448e16 Revert most of previous:
- props being NULL is NOT an error and is a condition that all modules
  must be prepared to handle
- having this module bomb out for spurious reasons makes this module
  difficult to use for testing things
- keep comment update
- keep some KNF
- add a notice for the case when props is NULL
2010-10-25 22:41:42 +00:00
jruoho 4b8430b9d1 Build acpidalb(4), acpitz(4), acpivga(4), and aibs(4) as modules on x86.
More to come later.
2010-10-25 17:17:56 +00:00
jruoho 70e14dc983 Bump WARNS to 4. 2010-10-25 07:48:03 +00:00
jruoho 6f8ac939ae Build acpiacad(4), acpibat(4), acpibut(4), acpicpu(4), acpilid(4), and
thinkpad(4) as modules on x86. More to come later.
2010-10-25 06:40:32 +00:00
jmcneill b70feaec53 build acpiwmi as a module on x86 2010-10-24 18:29:33 +00:00
jmcneill abee62ef8f build wmi drivers as modules on x86 2010-10-24 16:31:35 +00:00
tsutsui 2240ae6f10 Also build and install compat_aoutm68k.kmod and exec_aout.kmod on m68000
to make things easier.  ${MACHINE_ARCH} == ${MACHINE_CPU} on m68k
so we can't use ad.m68k for a set list to exclude m68000.
2010-10-20 14:50:22 +00:00
pgoyette adb48c7f00 Build the new swsensor(4) device and add to set lists 2010-10-19 11:58:00 +00:00
pgoyette 3ae668c1c8 Add a new software-only sensor device. This is intended for use as a
kernel module, and can be helpful to generate sysmon_envsys events
when creating/modifying powerd scripts.  This will also be used in an
upcoming series of atf tests for sysmon_envsys itself.
2010-10-19 11:55:38 +00:00
tsutsui 621e053625 Build and install compat_aoutm68k.kmod and exec_aout.kmod on m68k machines. 2010-10-15 12:20:33 +00:00
tsutsui 0d70fee822 Add compat_aoutm68k module build dir.
(See options(4) for details of compat_aoutm68k)
2010-10-15 11:22:01 +00:00
tsutsui b01b8bd3fb Disable PAX_ASLR on sh3 as well. exec_elf32 module doesn't work with it
at least on dreamcast.
2010-10-13 14:15:23 +00:00
mrg 0db5384dc8 enable COMPAT_30 and COMPAT_50 in the module. 2010-09-19 05:42:10 +00:00
rmind 63012b51f1 NPF checkpoint:
- Add support for bi-directional NAT and redirection / port forwarding.
- Finish filtering on ICMP type/code and add filtering on TCP flags.
- Add support for TCP reset (RST) or ICMP destination unreachable on block.
- Fix a bunch of bugs; misc cleanup.
2010-09-16 04:53:27 +00:00
sjg ce171c67f4 First cut of simple syscall wrapper, which make(1) can use
to track process activity.
2010-09-09 00:10:16 +00:00
rmind 2e6f2099c6 Import NPF - a packet filter. Some features:
- Designed to be fully MP-safe and highly efficient.

- Tables/IP sets (hash or red-black tree) for high performance lookups.

- Stateful filtering and Network Address Port Translation (NAPT).
  Framework for application level gateways (ALGs).

- Packet inspection engine called n-code processor - inspired by BPF -
  supporting generic RISC-like and specific CISC-like instructions for
  common patterns (e.g. IPv4 address matching).  See npf_ncode(9) manual.

- Convenient userland utility npfctl(8) with npf.conf(8).

NOTE: This is not yet a fully capable alternative to PF or IPFilter.
Further work (support for binat/rdr, return-rst/return-icmp, common ALGs,
state saving/restoring, logging, etc) is in progress.

Thanks a lot to Matt Thomas for various useful comments and code review.
Aye by: board@
2010-08-22 18:56:18 +00:00
jruoho 77e2991ced Add DIAGNOSTIC. 2010-08-18 19:33:10 +00:00
jruoho 6b9ff1079c Merge T-state a.k.a. throttling support for acpicpu(4).
Remarks:

  1.    Native instructions are supported only on Intel. Native support for
        other x86 vendors will be investigated. By assumption, AMD and others
        use the I/O based approach.

  2.    The existing code, INTEL_ONDEMAND_CLOCKMOD, must be disabled in
        order to use acpicpu(4). Otherwise fatal MSR races may occur.
        Unlike with P-states, no attempt is done to disable the existing
        implementation.

  3.    There is no rationale to export controls to user land.

  4.    Throttling is an artefact from the past. T-states will not be used for
        power management per se. For CPU frequency management, P-states are
        preferred in all circumstances. No noticeable additional power savings
        were observed in various experiments. When the system has been scaled
        to the highest (i.e. lowest power) P-state, it is preferable to move
        from C0 to deeper C-states than it is to actively throttle the CPU.

  5.    But T-states need to be implemented for passive cooling via acpitz(4).
        As specified by ACPI and Intel documents, these can be used as the
        last line of defence against critical thermal conditions. Support
        for this will be added later.
2010-08-13 16:21:50 +00:00
pooka 49f08a7073 Define ioconf to create locators.h, which is now required by acpiverbose. 2010-08-11 14:50:38 +00:00
jruoho 53e8f6c919 Merge P-state support for acpicpu(4).
Remarks:

  1.    All processors (x86 or not) for which the vendor has implemented
        ACPI I/O access routines are supported. Native instructions are
        currently supported only for Intel's "Enhanced Speedstep". Code for
        "PowerNow!" (AMD) will be merged later. Native support for VIA's
        "PowerSaver" will be investigated.

  2.    Backwards compatibility with existing userland code is maintained.
        Comparable to the case with cpu_idle(9), the ACPI CPU driver
        installs alternative functions for the existing sysctl(8) controls.
        The "native" behavior (if any) is restored upon detachment.

  3.    The dynamic nature of ACPI-provided P-states needs more investigation.
        The maximum frequency induced (but not forced) by the firmware may
        change dynamically. Currently, the sysctl(8) controls error out with
        a value larger than the dynamic maximum. The code itself does not
        however yet react to the notifications from the firmware by changing
        the frequencies in-place. Presumably the system administrator should
        be able to choose whether to use dynamic or static frequencies.
2010-08-08 16:58:41 +00:00
jruoho 460de0d614 Remove the acpiwmi(4) dump from the ACPIVERBOSE module. Instead of this
complex solution, just use aprint_debug(9) in the driver.
2010-08-06 22:45:00 +00:00
jruoho 47bb5e479e Add a Makefile for ACPI CPUs.
It is safe to load and unload the whole ACPI CPU -functionality at runtime.
2010-07-18 09:37:50 +00:00
rmind ef6414a63a Sync procfs module with kernel change for x86 MD. 2010-07-08 20:32:12 +00:00
pooka 2c9dc3f982 remember to add the new file to the build 2010-07-06 16:13:57 +00:00
rmind fc8b3b7154 Replace tmpfs_pool custom allocator code with a simpler layer for memory
accounting.  Use wired memory (which can be limited) for meta-data, and
kmem(9) for string allocations.

Close PR/31944.  Fix PR/38361 while here.  OK ad@.
2010-06-22 18:32:07 +00:00
rmind ef1673540e KNF and tidy-up example module slightly. 2010-06-22 18:30:20 +00:00
mjf e0e10b0607 Add __cacheline_aligned and __read_mostly annotations.
These annotations help to mitigate false sharing on multiprocessor
systems.

Variables annotated with __cacheline_aligned are placed into the
.data.cacheline_aligned section in the kernel. Each item in this
section is aligned on a cachline boundary - this avoids false
sharing. Highly contended global locks are a good candidate for
__cacheline_aligned annotation.

Variables annotated with __read_mostly are packed together tightly
into a .data.read_mostly section in the kernel. The idea here is that
we can pack infrequently modified data items into a cacheline and
avoid having to purge the cache, which would happen if read mostly
data and write mostly data shared a cachline. Initialisation variables
are a prime candiate for __read_mostly annotations.
2010-06-01 22:13:30 +00:00
pgoyette 6c40070d66 Extract ACPIVERBOSE into a kernel module. The module can be builtin
by defining 'options ACPIVERBOSE' in the kernel config file (no change
from current behavior), or it can be loaded at boot time on those
architectures that support the boot loader's "load" command.

ACPIVERBOSE also includes code to dump acpi/wmi data.
2010-05-31 20:32:28 +00:00
pgoyette 700e1731f0 Extract MIIVERBOSE into a kernel module. The module can be builtin
by defining 'options MIIVERBOSE' in the kernel config file (no change
from current behavior), or it can be loaded at boot time on those
architectures that support the boot loader's "load" command.
2010-05-30 17:44:07 +00:00
pgoyette 1dad7e2286 Extract SCSIVERBOSE into a kernel module. The module can be builtin
by defining 'options SCSIVERBOSE' in the kernel config file (no change
from current behavior), or it can be loaded at boot time on those
architectures that support the boot loader's "load" command.

The module is built for all architectures, whether or not SCSI or
atapi support exists.
2010-05-30 04:38:03 +00:00
pgoyette 3f79fb26a7 Extract USBVERBOSE into a kernel module. The module can be builtin
by defining 'options USBVERBOSE' in the kernel config file (no change
from current behavior), or it can be loaded at boot time on those
architectures that support the boot loader's "load" command.

The module is built for all architectures, whether or not USB support
exists.
2010-05-29 01:14:29 +00:00
mrg 5373bec4d9 add r600_blit.c and radeon_cs.c. 2010-05-27 07:27:35 +00:00
pgoyette 72a7c70b78 Extract the vendor/product tables and related access routines into a
separate kernel module.  Update pci bus attach routine to load the
module (if available) when we're about to start scanning the bus, and
unload the module after the scan is finished.

On architectures which support loading of modules by the boot loader,
the 'pciverbose' module can be loaded and executed without needing to
rebuild the kernel.  On all architectures, using 'options PCIVERBOSE'
in the kernel configuration file will create a 'builtin' module which
is functionally equivalent to previous behavior.

XXX Although not nearly as large as the vendor and product tables,
XXX the PCI class and subclass tables might also be offloaded into
XXX the module at a future time.

XXX Cardbus (and possibly other) drivers should also be modified to
XXX load the module before scanning/attaching devices.
2010-05-24 20:29:40 +00:00
ahoka 0edd676945 Remove bpfilter.h as not needed. 2010-04-13 13:09:46 +00:00
ahoka edd6235b94 Connect the pf module to the build. 2010-04-12 14:08:58 +00:00
ahoka dcc843776f Add new type kernel module for pf (includes pflog, but not pfsync). 2010-04-12 14:05:38 +00:00
ahoka 4a9711fd6e Connect the pad(4) kernel module to the build on i386 and amd64. 2010-04-09 13:49:12 +00:00
ahoka 07c8a4984d Makefile to build kernel module for pad. 2010-04-09 13:41:45 +00:00