Commit Graph

1122 Commits

Author SHA1 Message Date
jmcneill
21d168c081 add DesignWare SD/MMC controller driver 2014-12-27 01:18:48 +00:00
uebayasi
c42523f496 config(1), config(5): Introduce "select"
o Introduce a new selection directive "select" to select an attribute (as a
  module) and its dependencies.
o Support "no select" too.
o Stop abusing "options" to select an attribute.
o Bump config(1) version.
2014-10-31 07:38:36 +00:00
uebayasi
27424e5fa5 Move kern definitions. 2014-10-12 04:30:42 +00:00
uebayasi
d13c4a3b07 Move net definitions. 2014-10-12 03:56:18 +00:00
uebayasi
f62ed0e5b2 Define layerfs as an attribute. 2014-10-12 03:52:30 +00:00
uebayasi
e500ebe9ee Normalize audio related definitions. 2014-10-10 17:21:20 +00:00
uebayasi
3da6b6cc01 Define net attribute. Always select it for now. 2014-10-10 12:46:32 +00:00
uebayasi
ff1a9b99cc Move athn definitions. 2014-10-10 12:39:53 +00:00
uebayasi
89221fef3c Move audio related definitions. 2014-10-10 12:29:28 +00:00
uebayasi
b31f13fb95 To make sure that I'm not doing wrong, try to define ffs/ufs/vfs dependencies
a little more strictly.
2014-10-10 12:20:13 +00:00
uebayasi
92b86764e1 Bump config(1) version.
config(1) still keeps backward-compatibility; it is more permissive than
before.  The tree, however, needs the updated config(1), mainly to strictly
define attribute ("module") ownership and dependencies.
2014-10-10 12:10:02 +00:00
uebayasi
b411015f8e Now that attribute dependency works, prefer it to options dependency (personal
preference).  Use it for "kern", depending on "machdep" and "uvm".
2014-10-10 10:25:00 +00:00
uebayasi
7449b0ef66 Use option dependency to always select KERN (and its dependencies). 2014-10-10 09:31:40 +00:00
uebayasi
46d7be3c23 Define "machdep" attribute and mark files (in amd64 and x86). 2014-10-10 09:13:21 +00:00
uebayasi
bb143539dc Use opt_*.h to not polute CPPFLAGS.
Attribute dependency is not yet.  Revert a definition.
2014-10-10 09:01:01 +00:00
uebayasi
ddd87a14b9 Define "uvm" attribute and mark files. 2014-10-10 08:24:54 +00:00
uebayasi
6fb100ce1c Define "kern" attribute (a.k.a module). Mark kern_*.c (and some others) as
"kern".  Always select "kern" in sys/conf/std.
2014-10-10 08:18:04 +00:00
christos
4c9d1f022b add the common code for verbose printing of devices. 2014-09-21 14:31:38 +00:00
jmcneill
0f97be00b0 options MOTG_ALLWINNER to select the awin specific reg layout 2014-09-13 14:47:35 +00:00
martin
6caee94ae6 Config glue for the Designware GMAC core.
Switch allwinner specific awge driver over to use it.
2014-09-08 14:26:16 +00:00
joerg
45c6ebd5f6 Revert last, bump required config version instead. 2014-08-24 20:23:38 +00:00
matt
bf06458dd9 Add entry for kern/kern_ksyms_buf.c 2014-08-24 16:42:46 +00:00
tsutsui
22f9ddb84f Add new arcofi(4) audio driver for NetBSD/hp300, ported from OpenBSD.
The arcofi(4) is a driver for the HP "Audio1" device
(Siemens PSB 2160 "ARCOFI" phone quality audio chip)
found on the HP9000/425e and HP9000/{705,710,745,747} models
(but only hp300 attachment is ported for now).
The chip supports 8-bit mono 8kHz U-law, A-law and
16-bit mono slinear_be formats.

The old HP9000/425e playing tunes with this new arcofi(4) audio driver
was also demonstrated at Open Source Conference 2014 Shimane.
2014-08-24 08:17:44 +00:00
jnemeth
ee79d5b0e4 Create an "options MODULAR_DEFAULT_AUTOLOAD" config option and add
it to all kernel configs that contain "options MODULAR".  This
option turns on module autoloading by default (which is the current
default).  This allows people who don't want module autoloading on
by default to disable it by simply removing/commentting this line.
2014-08-24 07:59:22 +00:00
joerg
a26164117a Reorganize symbol table embedding. The existing option SYMTAB_SPACE is
replaced by the make option COPY_SYMTAB set to any value. The copy of
the symbol table is no longer put into a buffer in kern_ksyms.o, but a
small helper object. This object is build first with a dummy size, then
the kernel is linked to compute the real dimension of the symbol table
buffer. After that, the helper object is rebuild and the kernel linked
again.
2014-08-17 21:17:43 +00:00
apb
f498235332 Add COMPAT_70 to conf/files; add compat_70 to kern/syscalls.conf
and compat/netbsd32/syscalls.conf.
2014-08-16 17:24:28 +00:00
tls
ea6af427bd Merge tls-earlyentropy branch into HEAD. 2014-08-10 16:44:32 +00:00
ozaki-r
64d3f382b2 Call etherinit from ifinit1 only when it is required
This unbreaks the builds of kernels that don't build if_ethersubr.c.
2014-07-30 13:32:09 +00:00
bouyer
55adee8448 Add motg(4), a driver for Mentor Graphic's OTG USB controller IP,
as found in several SoCs.
Only host mode is supported, good enough for umass (USB keys), kubd and ums,
and USB2 hubs.
It fails to properly talk to USB/serial adapters at this time.
2014-07-16 18:22:23 +00:00
christos
dbd224bbcc stf is a 6->4 gateway and needs both inet4 and inet6 not one or the other. 2014-06-12 21:08:31 +00:00
rmind
60d350cf6d - Implement pktqueue interface for lockless IP input queue.
- Replace ipintrq and ip6intrq with the pktqueue mechanism.
- Eliminate kernel-lock from ipintr() and ip6intr().
- Some preparation work to push softnet_lock out of ipintr().

Discussed on tech-net.
2014-06-05 23:48:16 +00:00
rmind
8011b285c0 Implement MI IPI interface with cross-call support. 2014-05-19 22:47:53 +00:00
riastradh
46e38060ce Fix apple_smc config in conf/files. 2014-04-01 17:49:30 +00:00
riastradh
9456e37730 Rework Apple SMC attachment goo and split into multiple modules.
The four modules are apple_smc for the core functions, apple_smc_acpi
for attachment at acpi, and apple_smc_fan & apple_smc_temp for stuff
on the SMC.

Seems like there's a lot more bookkeeping necessary to maintain
children of an applesmc device implemented by loadable modules.
Maybe there's a better way I just haven't figured out yet.
2014-04-01 17:48:39 +00:00
riastradh
0396c57641 First draft of drivers for the Apple System Management Controller.
Device interface derived by reading the Linux driver source code and
<http:///www.parhelia.ch/blog/statics/k3_keys.html> as of 2012-12-05.

Includes support for attaching fan and temperature sensors to sysmon.
No accelerometer yet.

Compile-tested only, based on some run-testing of experiments from
userland.  Module attachment is not quite finished, so it won't work
yet.
2014-04-01 17:47:36 +00:00
nonaka
c3077021ad Add a driver for Realtek RTS5209/RTS5229 Card Reader.
Ported from OpenBSD.
2014-03-19 15:26:41 +00:00
riastradh
6cb10275d0 Merge riastradh-drm2 to HEAD. 2014-03-18 18:20:35 +00:00
ozaki-r
2d82c07a81 Build net/zlib.c for DTrace
This is needed for building DTrace on ARM.
2014-03-05 03:16:43 +00:00
hannken
d940ddcc62 Currently dead vnodes still reside on the vnodelist of the file system
they have been removed from.

Create a "dead mount" that takes dead vnodes until they get freed.

Discussed on tech-kern.
2014-02-27 13:00:06 +00:00
matt
d0fba2d7dc defparam KERNHIST_DELAY 2014-02-21 07:32:43 +00:00
pooka
b4e2514736 Put vfs bits of ktrace into kern_ktrace_vfs.c per convention. 2013-12-09 16:45:23 +00:00
skrll
550cac20b5 Remove dotg(4) as it's been replaced by dwctwo(4). 2013-10-15 15:13:17 +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
kiyohara
bdd2f21f7e Add COM_16750 to opt_com.h. 2013-07-27 07:02:03 +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