Commit Graph

462 Commits

Author SHA1 Message Date
martin 3028e483e4 Convert to new 2 clause license 2008-04-29 06:53:00 +00:00
martin ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
xtraeme ebbe324501 Add some missing initializers to build the LKMs with WARNS=4. 2008-04-26 20:10:15 +00:00
xtraeme 7633a17263 Merge NOMAN, CLEANFILES and WARNS into the shared Makefile.inc. 2008-04-05 19:03:57 +00:00
xtraeme b4af2cba55 Add the finsio(4) LKM. 2008-04-03 22:57:40 +00:00
xtraeme 489d9f36fc Erm. Backout previous... I committed the wrong file. 2008-04-03 22:54:29 +00:00
xtraeme a68cbff5b2 Add the finsio(4) driver. This driver supports the Hardware Monitor
device in the Fintek LPC Super I/O chips, this includes the following
list:

- F71805F
- F71806F
- F71862FG
- F71872F
- F71882
- F71883F

This has been adapted from the fins(4) driver available in OpenBSD, which
only supported F71805F.

Tobias Nygren <tnn> and myself added support for the other chips; thanks go
to Tobias for testing the driver with a Fintek F71882 chip.
2008-04-03 22:46:22 +00:00
dholland 7d11c7f1f8 MKMAN does not belong in source makefiles. Use NOMAN.
(which in this case is set by Makefile.inc)
2008-03-10 01:22:05 +00:00
skrll 7bd976725f hppa bits for the kernel linker. 2008-03-01 12:40:08 +00:00
njoly d321737f6a Add new linux_uid16.c file needed for m68k. 2008-01-17 15:10:53 +00:00
he 30542539fe Now that compat/hpux is gone, this has no chance of building, so
remove it as well.
2008-01-05 10:24:11 +00:00
dan 6b2d0ee56c use more includes, take them from the right place
xtraemok
2008-01-05 04:50:05 +00:00
ad 9f6b8c4d04 Remove COMPAT_HPUX. 2007-12-31 13:38:47 +00:00
dsl 7e2790cf6f Convert all the system call entry points from:
int foo(struct lwp *l, void *v, register_t *retval)
to:
    int foo(struct lwp *l, const struct foo_args *uap, register_t *retval)
Fixup compat code to not write into 'uap' and (in some cases) to actually
pass a correctly formatted 'uap' structure with the right name to the
next routine.
A few 'compat' routines that just call standard ones have been deleted.
All the 'compat' code compiles (along with the kernels required to test
build it).
98% done by automated scripts.
2007-12-20 23:02:38 +00:00
dsl d975bc8ffa Remove all the __P 2007-12-19 20:31:35 +00:00
elad 6887492c26 Make securelevel a "secmodel" of its own.
While it's true that it's part of the traditional 4.4BSD security model,
there may come a time where a different "primary" security model used for
fine-grained privileges (ie., splitting root's responsibilities to various
privileges that can be assigned) may want to still have a securelevel
setting.

Idea from Daniel Carosone:

  http://mail-index.netbsd.org/tech-security/2006/08/25/0001.html

The location of the removed files, for reference, was:

  src/secmodel/bsd44/secmodel_bsd44_securelevel.c
  src/secmodel/bsd44/securelevel.h
2007-11-21 22:49:05 +00:00
xtraeme da3a7579a9 Use BUILDSYMLINKS to avoid a compilation error where the source file
has the same name than the LKM.
2007-11-20 21:47:34 +00:00
xtraeme 31962fc6e5 Extend the envsys2 API (one more time, sorry) as defined in:
http://mail-index.netbsd.org/tech-kern/2007/11/09/0001.html

sysmon_envsys_create() and sysmon_envsys_destroy() were added to
create/destroy sysmon_envsys objects (and its TAILQ/LIST for sensors/events).

sysmon_envsys_sensor_attach() and sysmon_envsys_sensor_detach() were
added to attach/detach sensors to a specified sysmon_envsys device.

The events framework is now per device and configurable via the
ENVSYS_SETDICTIONARY ioctl or /etc/envsys.conf and envstat(8).

Update all users and documentation to reflect these changes.
2007-11-16 08:00:11 +00:00
xtraeme e9e087f048 Update for it(4) -> itesio(4) rename. 2007-11-15 13:04:50 +00:00
pooka eb9f86bac5 don't init the device since it's not part of puffs anymore 2007-11-13 18:35:56 +00:00
pooka 78a22b918c No more puffs_transport.c, as noted by Kurt Schreiner on current-users.
(this lkm doesn't work for now, but at least MKPUFFS=yes builds
won't fail)
2007-11-12 12:31:15 +00:00
dsl db27b89936 Pecoff lkm doesn't need its own syscall table, remove and reinstate lkm build.
Add in pecoff_exec.c to lkm !
2007-11-10 09:43:13 +00:00
dsl 0588a2274c Do not build pecoff any more.
I don't think the code was ever more that a thought-project!
Certainly it shouldn't be using the netbsd system call table!
Probably all of compat/pecoff wants nuking.
2007-11-09 22:27:08 +00:00
xtraeme b0ea8c709b Catch up with latest changes. 2007-11-04 02:09:01 +00:00
njoly a478f23b9e Add compat_linux and exec_linux_elf lkm support for amd64:
- Add needed COMPAT_OSSAUDIO to GENERIC.
- Add missing includes needed by linux_syscallargs.h.
- Add lkm building.
2007-10-19 18:52:09 +00:00
ad a2a3828545 machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h 2007-10-19 11:59:34 +00:00
xtraeme 8b2678bd7e Use a two clause license for all the code I contributed.
The envsys code will be changed later.
2007-10-06 07:21:02 +00:00
pooka 28636f63b4 Split routines handling nodes from puffs_subr to puffs_node.
No functional change.
2007-09-27 23:21:07 +00:00
rumble aff14ee9c8 Actually include all of the EFS source in the lkm.
From Nicolas Joly.
2007-09-13 21:46:54 +00:00
xtraeme fd79e0d338 Remove a local CPPFLAGS addition. 2007-09-11 22:02:09 +00:00
xtraeme 1dac9ede4d New aps(4) driver for IBM Thinkpad Active Protection System.
Exports some sensors through the envsys(4) framework available
in some Thinkpad laptops.

Ported by Pierre Pronchery from OpenBSD, via PR port-i386/36852.

Tweaks, LKM and misc improvements by me. Added into i386/GENERIC
commented out.
2007-09-11 21:46:52 +00:00
xtraeme d9144c32f2 Do not LKM_ISA_IO_PORT to 0x290 by default, some drivers try to guess it
and there's no much sense in adding it.
2007-09-11 07:41:26 +00:00
xtraeme 0dd9b7dc5f Cosmetic: use the last enum member for max sensors number. 2007-09-11 07:36:22 +00:00
cube c725329722 Remove 3rd clause and my name from all the licences which were only in my
name.
2007-09-10 10:35:51 +00:00
xtraeme ae9c37793d Reorganize the code and add two ENVSYS_BATTERY_STATE sensors. 2007-09-09 16:09:37 +00:00
xtraeme e8f02a5c46 Set LKM_ISA_DRVNAME to LKM_ISA_DRVNAME_CA by default... removes an
extra line in some drivers.
2007-09-09 13:52:23 +00:00
xtraeme f98b18e4bd Ok, last round: templ -> tmpl. 2007-09-09 13:28:03 +00:00
xtraeme 4a8ca00f58 Rename lkm_isa.templ to lkm_isa.c.templ... to make jmcneill happy. 2007-09-09 13:24:02 +00:00
xtraeme d76f18ef6a Add all drivers that I just added. They won't be built by default... 2007-09-09 05:51:59 +00:00
xtraeme 09af330546 Remove a local CPPFLAGS line that was commented out. 2007-09-09 05:46:27 +00:00
xtraeme 3d9887f5a6 Add the ug(4) LKM. Not tested but I've been using lm(4) and should work. 2007-09-09 05:40:22 +00:00
xtraeme 42d3167c6c Add the nsclpcsio(4) LKM. Not tested but I've been using lm(4) and
should work.
2007-09-09 05:27:10 +00:00
xtraeme ba6e78a942 Add the smsc(4) LKM. Not tested but I've been using lm(4) and should work. 2007-09-09 05:18:20 +00:00
xtraeme c2d7d8aaf3 Add the it(4) LKM. Not tested but I've been using lm(4) and should work. 2007-09-09 05:11:01 +00:00
xtraeme ae26b33f71 Remove a duplicate line. 2007-09-09 04:38:16 +00:00
xtraeme 2049e94266 Add the lm(4) LKM and a common template to build ISA modules by only
setting some variables. Voodoo magic to create lkm_isa.c was required.
2007-09-09 04:24:24 +00:00
xtraeme b60ffc9079 Print the error of sysmon_envsys_register() if it fails. 2007-09-08 00:23:46 +00:00
xtraeme 7c46a42d68 s/ENVSYS_FMONDRVSTATE/ENVSYS_FMONSTCHANGED/ 2007-09-07 19:58:06 +00:00
xtraeme f2ddd114e5 Update to catch some problems that I just fixed in the framework. The
following test cases were fixed if a driver tries to register a driver
with sysmon_envsys_register() and the following items appear:

- Sensor with empty description.
- Sensor with state that doesn't match any of ENVSYS_SFOO.
- Sensor with units type that doesn't match any of ENVSYS_FOO.
2007-07-22 18:24:48 +00:00
xtraeme e25c1ce382 - Add more sensors after the two that have duplicate descriptions, to verify
they work fine.
- Remove the workaround for sensor with index 0, it's fixed now.
2007-07-21 22:30:21 +00:00