Commit Graph

1648 Commits

Author SHA1 Message Date
pooka
10fe49d72c Redefine bpf linkage through an always present op vector, i.e.
#if NBPFILTER is no longer required in the client.  This change
doesn't yet add support for loading bpf as a module, since drivers
can register before bpf is attached.  However, callers of bpf can
now be modularized.

Dynamically loadable bpf could probably be done fairly easily with
coordination from the stub driver and the real driver by registering
attachments in the stub before the real driver is loaded and doing
a handoff.  ... and I'm not going to ponder the depths of unload
here.

Tested with i386/MONOLITHIC, modified MONOLITHIC without bpf and rump.
2010-01-19 22:06:18 +00:00
jmmv
098e7f45cb Enable 'options MODULAR' in macppc and shark GENERIC kernels now that the
modules work.
2010-01-18 23:40:06 +00:00
tsutsui
471e528b58 Remove `volatile' qualifier from argument types of
struct timeval passed to todr_gettime(9) and todr_settime(9).
We no longer have an ancient and volatile struct timeval `time'
global since we have switched to MI timercounter(9) on all port.

XXX1: some of these RTC drivers still assume 32bit time_t
XXX2: some of these should be rewritten to use todr_[gs]ettime_ymdhms()
XXX3: todr(9) man page doesn't mention todr_[gs]ettime_ymdhms()
2009-12-12 14:44:08 +00:00
pooka
70d4493c77 Remove the portalfs kernel file system driver. Replace mount_portal(8)
with a version based on puffs.  User functionality remains the same.
2009-12-05 20:11:01 +00:00
rmind
3f18fe8123 - Use uvm_lwp_setuarea() instead of directly setting address to lwp_t::l_addr.
- Replace most remaining uses of l_addr with uvm_lwp_getuarea() or lwp_getpcb().
- Amend assembly in ports where it accesses PCB via struct user.
- Rename L_ADDR to L_PCB in few places.  Reduce sys/user.h inclusions.
2009-11-27 03:23:03 +00:00
matt
11af2f9cfa Kill proc0paddr. Use lwp0.l_addr instead. 2009-11-26 00:19:11 +00:00
dyoung
d53ef3367c wdcactivate() is gone, don't use it. 2009-11-18 22:51:07 +00:00
dyoung
6efd54581f Bring this up-to-date with the changes to dbcool_softc. 2009-11-05 05:39:41 +00:00
dyoung
7507fa6898 In awacs(4) and snapper(4), use deviter(9) instead of accessing
alldevs directly.

In pbms(4), delete some unused debugging macros, expand USB
compatibility macros, and add a child-detachment routine.  Simplify
pbms(4) deactivation and detachment.

These changes are compile-tested, only.
2009-11-05 05:37:30 +00:00
christos
e641795b86 adjust to dbcool_chipset. 2009-11-02 21:38:07 +00:00
snj
cf5c962817 Drop 3rd and 4th clauses. Approved by Brad Grantham (copyright holder). 2009-11-01 01:51:35 +00:00
snj
a98264b10e Drop 3rd and 4th clauses. Approved by gwr@ and wrstuden@ (copyright
holders).
2009-10-27 03:45:32 +00:00
cegger
62cf489d8e kill extra whitespaces
reviewed by tsutsui@
2009-10-26 19:16:54 +00:00
tsutsui
2b46e6e3c6 Make local functions static. 2009-09-26 15:49:45 +00:00
tsutsui
2036298c54 Replace shutdownhook_establish(9) with pmf_device_register1(9).
Compile test only, but similar to mesh.c.
2009-09-26 15:46:48 +00:00
tsutsui
d9d27ba4b2 Replace shutdownhook_establish(9) with pmf_device_register1(9).
Tested on Apus2000.
2009-09-26 15:45:28 +00:00
tsutsui
cc35c23e68 Fix a botch on device_t/softc split:
Don't forget to set sc->sc_dev.
2009-09-26 15:40:02 +00:00
snj
72cb0cefcf Update path to the atheros HAL. 2009-08-07 18:48:38 +00:00
tsutsui
9060c64376 Split device_t/softc. Tested on Apus2000. 2009-05-15 16:18:28 +00:00
elad
105d9a093d Replace curlwp->l_cred with kauth_cred_get().
Mailing list reference:

	http://mail-index.netbsd.org/tech-kern/2009/05/05/msg005038.html
2009-05-06 18:41:54 +00:00
tsutsui
ac465a42e7 Remove obsolete LIBSA_USE_MEMCPY and LIBSA_USE_MEMSET.
They were removed from <lib/libsa/stand.h> on December 2007.
2009-04-03 10:38:12 +00:00
cegger
e2cb85904d bcopy -> memcpy 2009-03-18 17:06:41 +00:00
cegger
c363a9cb62 bzero -> memset 2009-03-18 16:00:08 +00:00
cegger
df7f595ecd Ansify function definitions w/o arguments. Generated with sed. 2009-03-18 10:22:21 +00:00
dsl
7cc9af7d64 ANSIfy functions with function-pointer arguments 2009-03-16 23:11:09 +00:00
tsutsui
d1ea7a31ca Use <bsd.klinks.mk> to create MD include dir symlinks. 2009-03-15 14:54:24 +00:00
tsutsui
28b5d3e561 - create symlinks for MD system headers by <bsd.klinks.mk>
- suppress warnings on build without DESTDIR
2009-03-15 08:52:46 +00:00
dsl
82357f6d42 ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
2009-03-14 21:04:01 +00:00
dsl
454af1c0e8 Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
2009-03-14 15:35:58 +00:00
dsl
02cdf4d2c8 Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.
2009-03-14 14:45:51 +00:00
joerg
f5b0fec0e0 Remove SHMMAXPGS from all kernel configs. Dynamically compute the
initial limit as 1/4 of the physical memory. Ensure the limit is at
least 1024 pages, the old default on most platforms.
2009-03-06 20:31:46 +00:00
aymeric
111a932741 . use device_private() (led to immediate crash during attach)
. while there, fix the aspect ratio of the trackpad on the geyser2 model
2009-03-01 10:18:30 +00:00
cube
ec543a2ce5 Convert the recently introduced awk command to retrieve the value of the
option MODULAR to using %MODULAR%.  While it is now possible to only
request the new version in the affected Makefiles, it is made mandatory for
everybody because I just fixed a bug in config(1) that would not make it
fail in the case of a syntax error in the Makefile template.
2009-02-15 01:58:01 +00:00
apb
6c4fc39a9f Now that "options MODULAR" is handled via defflag, the Makefile
generated by config(1) in the kernel compile directory no longer
contains IDENT=-DMODULAR.  Instead, there's an opt_modular.h file that
might or might not contain "#define MODULAR 1".

Adapt to this by adding an OPT_MODULAR variable to relevant Makefiles,
set via an awk script that parses opt_modular.h.
2009-02-14 16:53:55 +00:00
apb
0cc72e51ac Use "defopt MODULAR" in sys/conf/files, and #include "opt_modular.h"
in all kernel sources that use the MODULAR option.
Proposed in tech-kern on 18 Jan 2009.
2009-02-13 22:41:00 +00:00
pgoyette
c8996319e0 Avoid asking the controller to transfer zero bytes of data, since we have
no clue if this works or not.  This prevents the i2c quick_{read,write}
protocols from working, but the only place those protocols are used is in
the code that enumerates the i2c bus and that just doesn't make sense for
ki2c anyway.

While here, make sure that i2c send_{byte,word} operations will work even
if the caller provides the cmd (ie, register to modify) and the data in
separate args.  This is the normal calling sequence for iic_exec() routines
and will enable dbcool (4) driver to update device registers.

OK'd macallan@
2009-02-08 01:13:39 +00:00
jym
92ae85d18e Changes to MEMORY_RBFLAGS option:
- renamed to MEMORY_DISK_RBFLAGS to better fit the rest of the
MEMORY_DISK options(4)
- change default value to RB_AUTOBOOT instead of RB_SINGLE, and adapt
the config(5) files accordingly
- document this option inside options(4)

See also http://mail-index.netbsd.org/tech-kern/2008/12/25/msg003924.html

Reviewed by abs@ in private mail.
2009-02-06 18:50:26 +00:00
pgoyette
397929c01e Return error status if an attempt is made to use the quick_{read,write}
i2c protocols, since we don't (yet) know how to make the controller do it.
2009-02-04 16:11:12 +00:00
tsutsui
23c118aa2f - modify a pathname parse function to explicitly return devname and filename
- check floppyboot properly per devname before loadfile(), not in devopen()
- disable LOAD_NOTE on floppyboot to avoid backward seek
- bump revision

Tested floppy boot and IDE boot on Apus2000 with OpenFirmware 2.0.

Fixes PR install/38943 on macppc.
2009-01-28 15:03:28 +00:00
tsutsui
a3047076ab More WARNSfy in #ifdef NETIF_DEBUG. 2009-01-28 13:10:05 +00:00
mrg
c6a4afa995 add COMPAT_50 to all the configs with COMPAT_40. 2009-01-24 05:06:05 +00:00
ahoka
ced1cef27b The following patch makes dbcool(4) recognize the ADT7460 hardware in
the aluminium PowerBook G4 12".  The hardware is very similar to
several other models, to the point that it cannot be distinguished by
its advertised device id and revision id, which are the same as the
ADT7463.

Patch from Taylor R Campbell.
2009-01-14 03:16:57 +00:00
tsutsui
69cf32a782 Replace time_t values in libsa sources with the following two types
to avoid unnecessary 64 bit ops which would make binaries larger:

satime_t (currently unsigned int):
 numbers in seconds returned by the machine dependent getsecs() function
 which are used to measure relative time

saseconds_t (currently int):
 numbers in seconds used to specify timeout to network drivers

Per discussion on current-users.
2009-01-12 11:32:43 +00:00
tsutsui
ffe0121899 WARNSfy 2009-01-12 07:05:22 +00:00
macallan
345fb25dfd fix format instead of casting wildly 2009-01-11 18:26:21 +00:00
christos
d2f56df7fb don't truncate the print. 2009-01-11 18:02:39 +00:00
macallan
d785e78bf2 deal with 64bit time_t
Noticed by Wojciech Galazka
2009-01-11 17:04:37 +00:00
macallan
2af193eec9 add bwi driver for Airport Extreme
This driver didn't get much testing so I'd consider it experimental for now
2009-01-09 20:01:28 +00:00
christos
9a5d3f2817 replace bitmask_snprintf(9) with snprintb(3) 2008-12-16 22:35:21 +00:00
alc
1c52cf4c6b Import config(9) file and register HAL's files in the build machinery. 2008-12-11 05:42:18 +00:00