Commit Graph

1553 Commits

Author SHA1 Message Date
jnemeth
524c82e251 Welcome to 2014! 2014-01-01 00:33:34 +00:00
pooka
b4e2514736 Put vfs bits of ktrace into kern_ktrace_vfs.c per convention. 2013-12-09 16:45:23 +00:00
mbalmer
57b6509ecb revert previous 2013-10-18 08:06:06 +00:00
mbalmer
b2f05d7f17 add a device-major for lua(4) 2013-10-18 08:03:48 +00:00
skrll
550cac20b5 Remove dotg(4) as it's been replaced by dwctwo(4). 2013-10-15 15:13:17 +00:00
joerg
3657cb7f1d Update LLVM/Clang snapshot to r191105. This brings in a better detection
of unused static variables and functions. Disable this for some external
code and for ioconf.c in the kernel.
2013-09-21 22:28:12 +00:00
skrll
583b9efba9 Some dwc2 glue. 2013-09-21 13:22:48 +00:00
jmcneill
017bf683aa defparam ATADEBUG_MASK 2013-09-08 12:51:14 +00:00
skrll
6a24930e6a Fix debug kernel builds when the automatic symbol table resizing kicks in.
Previously, the TAIL/HEAD link steps were being executed twice and the
(relinked/stripped) kernel would overwrite the debug version.

XXX this is all ugly.
2013-08-09 09:08:47 +00:00
kiyohara
bdd2f21f7e Add COM_16750 to opt_com.h. 2013-07-27 07:02:03 +00:00
matt
beba19ed6e Use += for SYSTEM_DEP not ?= 2013-07-17 14:05:43 +00:00
rmind
f04a92b1d6 - Rewrite parts of pfil(9): use array to store hooks and thus be more cache
friendly (there are only few hooks in the system).  Make the structures
  opaque and the interface more strict.
- Remove PFIL_HOOKS option by making pfil(9) mandatory.
2013-06-29 21:06:57 +00:00
jakllsch
bbc8e76ede drop trailing whitespace 2013-06-24 16:19:43 +00:00
jakllsch
ab4be1879b Fix some comment formatting nits in the USB region. 2013-06-24 16:19:02 +00:00
riastradh
6290b0987e Rework rndsink(9) abstraction and adapt arc4random(9) and cprng(9).
rndsink(9):
- Simplify API.
- Simplify locking scheme.
- Add a man page.
- Avoid races in destruction.
- Avoid races in requesting entropy now and scheduling entropy later.

Periodic distribution of entropy to sinks reduces the need for the
last one, but this way we don't need to rely on periodic distribution
(e.g., in a future tickless NetBSD).

rndsinks_lock should probably eventually merge with the rndpool lock,
but we'll put that off for now.

cprng(9):
- Make struct cprng_strong opaque.
- Move rndpseudo.c parts that futz with cprng guts to subr_cprng.c.
- Fix kevent locking.  (Is kevent locking documented anywhere?)
- Stub out rump cprng further until we can rumpify rndsink instead.
- Strip code to grovel through struct cprng_strong in fstat.
2013-06-23 02:35:23 +00:00
christos
ec7296cdea there is no more fast_ipsec 2013-06-10 20:28:36 +00:00
gdt
dc8584ca52 Drop references to kame_ipsec, which has been gone for a while. 2013-06-10 20:08:35 +00:00
kardel
effe57d37e Extend kernel PPS api with pps_ref_event().
pps_ref_event() allows capturing PPS time stamps
that are not generated at precisely 1Hz (e. g.
by reading a precision clock via callout()).

This extension allows clock drivers to supply PPS
time-stamps and drive the kernel NTP PLL
without the overhead of interrupt-handling and
-processing.
2013-05-26 18:07:42 +00:00
christos
8c308c5be0 put needs flag back in a bunch of drivers because we need the file for #ifdefs 2013-04-28 03:11:32 +00:00
christos
70417199d5 more needs-flag removed. 2013-04-27 22:56:39 +00:00
christos
00e9557175 ccd and cgd don't need flag 2013-04-27 17:22:58 +00:00
christos
5495875b76 ccd does not need flags anymore 2013-04-27 17:16:43 +00:00
rkujawa
e314032c94 Add forgotten block device number for spiflash in an attempt to unbreak evbarm build. 2013-04-22 16:49:14 +00:00
rkujawa
52e9bd0cf4 Add character device for spiflash.
Obtained from Marvell, Semihalf.
2013-04-20 09:48:32 +00:00
christos
8b57040752 patches for new wifi devices. 2013-03-30 02:38:58 +00:00
joerg
e240adbd0b Retire OSI network stack. OK core@ 2013-03-01 18:25:13 +00:00
christos
64598e0663 add a major for dtrace 2013-02-28 02:00:03 +00:00
christos
5c9f984d44 inet & inet6 == wrong
(inet | inet6) == right
2013-02-22 15:59:14 +00:00
jakllsch
1aac087b5e This change adds SATA port multiplier support to mvsata(4). 2013-02-10 21:21:29 +00:00
jdc
c3ca80ef0c Add an MI major number for seeprom (char 206). 2013-02-08 15:00:26 +00:00
skrll
0b453b8d4b Provide dotg(4) - a driver for the Synposys DesignWare OTG USB IP found
in the RaspberryPI. The driver supports host mode and control, interrupt,
and bulk transfers only at this point.

Heavily based on the FreeBSD driver by Hans Petter Selasky.

Thanks to all who helped. Jared McNeill, Michael van Elst and other.
2013-01-09 22:23:44 +00:00
spz
bd7a4329bb Happy 2013 everybody 2013-01-01 00:01:23 +00:00
rkujawa
aadff9d116 Define msm6242b driver. 2012-11-14 02:03:25 +00:00
apb
f669c7071f Add references to ${_NETBSD_VERSION_DEPENDS} for files that
need to be re-created when the NetBSD version changes.  They
will also be re-created when any build settings are changed.
2012-11-04 11:12:31 +00:00
alnsn
e8c0d6c662 Add bpfjit and enable it for amd64. 2012-10-27 22:36:11 +00:00
drochner
bd4999fa18 defopt COMPAT_60, it is already being used 2012-10-17 20:16:59 +00:00
alnsn
5c5a76d566 Remove bpf_jit which was ported from FreeBSD recently.
It will soon be replaced with the new bpfjit kernel module.
2012-09-27 18:28:53 +00:00
bouyer
f2b31f39d0 Add a pass-through ioctl for mfi(4), allowing userland to send raw commands
to the controller. This is compatible with the linux and FreeBSD
implementations.
Add the needed conversion for mfi ioctls in COMPAT_LINUX
Allocate a character major number, and create /dev/mfi0 by default
on amd64 and i386.
This allows (along with a hand-created /emul/linux/proc/devices file)
to run the MegaCLI linux binary provided by LSI.
2012-09-19 21:24:28 +00:00
matt
7877a7bda7 Add xhci placeholder 2012-09-01 11:21:22 +00:00
joerg
c14f2d4ef8 Deal with optional HAVE_GCC. 2012-08-10 16:05:26 +00:00
matt
13efa83b82 compat_mod is also needed by compat_netbsd32 2012-08-03 07:41:47 +00:00
rmind
1f86dc56b4 Add BPF JIT compiler, currently supporting amd64 and i386. Code obtained
from FreeBSD.  Also, make few BPF fixes and simplifications while here.
Note that bpf_jit_enable is false for now.

OK dyoung@, some feedback from matt@
2012-08-01 23:24:28 +00:00
bouyer
9edd4d81c5 Apply back changes that were reverted on Jul 24 and Jul 26 (general ata/wdc
cleanup and SATA PMP support), now that I'm back to fix the fallouts.
2012-07-31 15:50:31 +00:00
degroote
aead3000b0 Add malo(4)@pci driver for Marvell Libertas wireless adaptor
Ported from OpenBSD
Known issues :
  - contrary to OpenBSD one, only support pci at the moment, because I don't
    have the necessary hardware to test PCMCIA / CARDUS Marvell Card
  - not connected to pmf(9) (unable to test it)
2012-07-30 18:57:17 +00:00
matt
2b5bbd5317 Enable -fno-common for GCC compiled kernels 2012-07-27 05:40:51 +00:00
jakllsch
102f7b2016 Revert, with intention of restoring in a less invasive way, the SATA Port
Multiplier code.

ok christos@
2012-07-26 20:49:44 +00:00
bouyer
03c9df05c6 Add sata Port MultiPlier (PMP) support to the ata bus layer,
as described in
http://mail-index.netbsd.org/tech-kern/2012/06/23/msg013442.html
PMP support in integrated to the atabus layer.
struct ata_channel's ch_drive[] is not dynamically allocated, and ch_ndrive
(renamed to ch_ndrives) closely reflects the size of the ch_drive[] array.
Add helper functions atabus_alloc_drives() and atabus_free_drives()
to manage ch_drive[]/ch_ndrives.
Add wdc_maxdrives to struct wdc_softc so that bus front-end can specify
how much drive they really support (master/slave or single).
ata_reset_drive() callback gains a uint32_t *sigp argument which,
when not NULL, will contain the signature of the device being reset.
While there, some cosmetic changes:
- added a drive_type enum to ata_drive_datas, and stop encoding the
  probed drive type in drive_flags (we were out of drive flags anyway).
- rename DRIVE_ATAPIST to DRIVE_ATAPIDSCW to better reflect what this
  really is
- remove ata_channel->ata_drives, it's redundant with the pointer in
  ata_drive_datas
- factor out the interpretation of SATA signatures in sata_interpet_sig()

propagate these changes to the ATA HBA drivers, and add support for PMP
to ahcisata(4) and siisata(4).

Thanks to:
- Protocase (http://www.protocase.com/) which provided a system
  with lots of controllers, SATA PMP and drive slots
- Conservation Genomics Laboratory, Department of Biology, New Mexico State
  University for hosting the above system
- Brook Milligan, who set up remote access and has been very responsive
  when SATA cable move was needed
2012-07-02 18:15:44 +00:00
christos
0461089547 Add a new resource to limit the number of lwps per user, RLIMIT_NTHR. There
is a global sysctl kern.maxlwp to control this, which is by default 2048.
The first lwp of each process or kernel threads are not counted against the
limit. To show the current resource usage per user, I added a new sysctl
that dumps the uidinfo structure fields.
2012-06-09 02:31:14 +00:00
riastradh
5ecfdf8dea Implement a genfs_rename abstraction.
First major step in incrementally adapting all the file systems to a
saner rename VOP protocol.
2012-05-08 23:53:26 +00:00
rmind
269014127a G/C POOL_DIAGNOSTIC option. No objection on tech-kern@. 2012-05-05 19:15:10 +00:00