Commit Graph

183836 Commits

Author SHA1 Message Date
tsutsui 51d56bbc55 Make local functions static. 2009-09-18 14:14:06 +00:00
tsutsui 01a44458f7 Use uint8_t pointers for TX/RX buffers to avoid extra pointer casts. 2009-09-18 14:09:42 +00:00
tsutsui d7e3eba588 Adjust attach messages. 2009-09-18 14:00:44 +00:00
tsutsui d01ef0d1d1 Split device_t/softc. 2009-09-18 13:48:54 +00:00
tsutsui 0ab05b4a42 Make be(4) is properly initialized at the first ifconfig(8) command:
- make beinit() and bestop() match struct ifnet
- if ether_ioctl() returns ENETRESET always call init function
2009-09-18 13:45:20 +00:00
joerg 1d5ec6dab9 Implement rename query. 2009-09-18 13:05:19 +00:00
tsutsui c349dcd7cd - wrap a long line
- ANSIfy
2009-09-18 12:59:47 +00:00
tsutsui eb06ddcd95 hme_reset() is no longer called from bus attachments so make it static. 2009-09-18 12:40:15 +00:00
tsutsui f3504c80ad - use device_private(), proper types and variables for device_t/softc
- remove unnecessary casts against void pointer

XXX: many inconsistent use of aprint_*(9) and printf(9)
2009-09-18 12:23:16 +00:00
abs 7fb2fc21e2 Of the arious list files 28 said
PROG   usr/bin/gzip    usr/bin/gzcat usr/bin/gunzip
while 14 picked
    PROG   usr/bin/gzip    usr/bin/gunzip usr/bin/gzcat

Make them all choose the former. No functional change.
2009-09-18 10:49:08 +00:00
tteras ff2c7b7d5c From Tomas Mraz: Fix gssapi error checking. 2009-09-18 10:31:11 +00:00
abs d2e3664387 Merge four separate copies of list2sh.awk runlist.sh (three identical
and one with slightly less options). Release build verified on amiga,
bebox and evbsh3. Vax build fails for unrelated reason.
2009-09-18 09:24:58 +00:00
jnemeth 7220a79813 Not all platforms can do PaX stuff. The list was derived in private
conversation with several developers.  The change was tested on
sparc64.

NetBSD ultra.example.ca 5.99.17 NetBSD 5.99.17 (MODULAR) #0: Tue Sep 15 19:08:02 PDT 2009  jnemeth@ultra.example.ca:/usr/local/current/objdir/sys/arch/sparc64/compile/MODULAR sparc64

NAME		CLASS	SOURCE	REFS	SIZE	REQUIRES
...
exec_elf64      misc	filesys	0	6981	coredump
...
2009-09-17 23:07:12 +00:00
dyoung 5cc26b1024 As Jonathan Kollasch points out, elansc_attach() does not actually
use gba after filling it out.  Delete it.
2009-09-17 20:21:54 +00:00
apb bfe9cb2130 Change a few hda_error to hda_debug. Fixes "WARNING: 4 errors while
detecting hardware; check system log." when I boot.
OK jmcneill.
2009-09-17 18:48:47 +00:00
skrll 25242842fd Move alpha to binutils 2.19. 2009-09-17 18:21:38 +00:00
tsutsui 5dcfc285a0 Misc KNF and cosmetics, and remove unnecessary casts etc. 2009-09-17 18:14:41 +00:00
tsutsui 48ffe7c901 Use proper types or variables for device_t and softc. 2009-09-17 18:09:51 +00:00
tsutsui 9c13754d44 Fix a message format in error path. 2009-09-17 17:53:35 +00:00
tsutsui 73d3aaa327 Split device_t/softc.
Tested on:
> lebuffer0 at sbus0 slot 3 offset 0x40000: 128K memory
2009-09-17 17:51:52 +00:00
cube 016409e102 Reflect actual status of cube-autoconf. 2009-09-17 16:42:50 +00:00
tsutsui 08c902218f Include "ioconf.h" instead of extern struct cfdriver foo_cd decls. 2009-09-17 16:39:48 +00:00
tsutsui 12ad76b18c Remove struct sbusdev and related functions sbus_establish() and sbusreset().
They are derived from 4.4BSD/sparc and have been there since initial import
of NetBSD/sparc in 1993, but the struct sbusdev is almost unused for years,
nothing calls sbusreset(), and all (*sd->sd_reset)() functions look bogus.

Suggested by mrg@ and martin@, and tested on SS1+ and SS20.
2009-09-17 16:28:12 +00:00
bsh 87aae92eeb fix a typo of register bit name. 2009-09-17 16:13:32 +00:00
pooka 36c33536d3 Set timeout to 20 because for some reason this test hangs in qemu.
(Well, it *still* hangs even after the timeout has passed, but at
least there's multiple problems to debug now)
2009-09-17 13:12:51 +00:00
tsutsui 41559777ac Use device_t, cfdriver_t, device_private(), device_xname(),
and appropriate types and variables for device_t/softc.
2009-09-17 12:38:11 +00:00
tron ca1f9d61ae Remove "/etc/postfix/postfix-script" as the file was obsoleted by
the upgrade to Postfix 2.6.x.
2009-09-17 11:52:02 +00:00
reinoud b8b9c8efc5 Update TODO message; we can format with meta data partitions, only not yet for
BD-R, i.e. UDF 2.60.
2009-09-17 10:37:28 +00:00
pooka 26e4989d18 Provide unwind log for bufq sysctls, since (theoretically) bufq might
not be initialized during kernel bootstrap and therefore "permanent"
nodes can be created only with an unwind log.
2009-09-17 09:54:27 +00:00
sborrill a6c4554922 Add hdaudio headers 2009-09-17 08:55:19 +00:00
pooka 8a9910b608 Can't use CTLFLAG_PERMANENT here without providing a rollback log,
since accept filters aren't (necessarily) added during kernel boot
phase.

pointed out & tested by Geoff Wing
2009-09-17 08:09:49 +00:00
plunky 6fe312c1a9 offer some actual information about what PaX might be, and provide
tips for further reading.
2009-09-17 08:07:17 +00:00
mrg 316b73f4dc add hdaudio files. 2009-09-17 07:40:44 +00:00
dyoung a823c63033 Don't install config_activate links such as config_activate.9 ->
autoconf.9.  In the set list, mark the config_activate links
obsolete.
2009-09-16 22:52:40 +00:00
dyoung 55270c28ac Delete documentation for config_activate(9), it does not exist any
more.
2009-09-16 22:47:29 +00:00
dyoung 8497597988 Nothing calls config_activate(9) any longer, so delete it. 2009-09-16 22:45:23 +00:00
dyoung 01dd38b17c Nothing else handles DVACT_ACTIVATE, so why should umass(4)? Get
rid of the DVACT_ACTIVATE case in umass_activate().  This eliminates
the only call to config_activate() in the entire tree.
2009-09-16 22:44:19 +00:00
dyoung 559e470577 Pass lmc(4) through 'unifdef -U__FreeBSD__ -U__bsdi__ -U__OpenBSD__
-U__linux__ -D__NetBSD__ -UNETGRAPH' to shorten this driver by
>2500 lines.  objdump -D does not reveal any differences in the
compiled code.
2009-09-16 21:14:15 +00:00
sborrill 68a2a617b2 Install hdaudio includes required by upcoming userland toolS 2009-09-16 20:58:07 +00:00
dsl fe52672374 Minor tweaks to the key generation for numeric fields.
Use 1's compliment for -ve numbers to avoid confitionals.
2009-09-16 20:56:38 +00:00
sborrill 51827ae696 Fix various typos and grammatical errors 2009-09-16 19:04:01 +00:00
dyoung 36fffd8d02 In pmf(9), improve the implementation of device self-suspension
and make suspension by self, by drvctl(8), and by ACPI system sleep
play nice together.  Start solidifying some temporary API changes.

1. Extract a new header file, <sys/device_if.h>, from <sys/device.h> and
   #include it from <sys/pmf.h> instead of <sys/device.h> to break the
   circular dependency between <sys/device.h> and <sys/pmf.h>.

2. Introduce pmf_qual_t, an aggregate of qualifications on a PMF
   suspend/resume call.  Start to replace instances of PMF_FN_PROTO,
   PMF_FN_ARGS, et cetera, with a pmf_qual_t.

3. Introduce the notion of a "suspensor," an entity that holds a
   device in suspension.  More than one suspensor may hold a device
   at once.  A device stays suspended as long as at least one
   suspensor holds it.  A device resumes when the last suspensor
   releases it.

   Currently, the kernel defines three suspensors,

   3a the system-suspensor: for system suspension, initiated
      by 'sysctl -w machdep.sleep_state=3', by lid closure, by
      power-button press, et cetera,

   3b the drvctl-suspensor: for device suspension by /dev/drvctl
      ioctl, e.g., drvctl -S sip0.

   3c the system self-suspensor: for device drivers that suspend
      themselves and their children.  Several drivers for network
      interfaces put the network device to sleep while it is not
      administratively up, that is, after the kernel calls if_stop(,
      1).  The self-suspensor should not be used directly.  See
      the description of suspensor delegates, below.

   A suspensor can have one or more "delegates".  A suspensor can
   release devices that its delegates hold suspended.  Right now,
   only the system self-suspensor has delegates.  For each device
   that a self-suspending driver attaches, it creates the device's
   self-suspensor, a delegate of the system self-suspensor.

   Suspensors stop a system-wide suspend/resume cycle from waking
   devices that the operator put to sleep with drvctl before the cycle.
   They also help self-suspension to work more simply, safely, and in
   accord with expectations.

4. Add the notion of device activation level, devact_level_t,
   and a routine for checking the current activation level,
   device_activation().  Current activation levels are DEVACT_LEVEL_BUS,
   DEVACT_LEVEL_DRIVER, and DEVACT_LEVEL_CLASS, which respectively
   indicate that the device's bus is active, that the bus and device are
   active, and that the bus, device, and the functions of the device's
   class (network, audio) are active.

   Suspend/resume calls can be qualified with a devact_level_t.
   The power-management framework treats a devact_level_t that
   qualifies a device suspension as the device's current activation
   level; it only runs hooks to reduce the activation level from
   the presumed current level to the fully suspended state.  The
   framework treats a devact_level_t qualifying device resumption
   as the target activation level; it only runs hooks to raise the
   activation level to the target.

5. Use pmf_qual_t, devact_level_t, and self-suspensors in several
   drivers.

6. Temporarily add an unused power-management workqueue that I will
   remove or replace, soon.
2009-09-16 16:34:49 +00:00
pooka 11281f01a0 Replace a large number of link set based sysctl node creations with
calls from subsystem constructors.  Benefits both future kernel
modules and rump.

no change to sysctl nodes on i386/MONOLITHIC & build tested i386/ALL
2009-09-16 15:23:04 +00:00
pooka 4b1eb92699 include init_sysctl_base.c 2009-09-16 15:10:23 +00:00
pooka d04c4fc891 call ifinit{,1}() 2009-09-16 15:08:53 +00:00
tsutsui aa68f4ed1a - no space needed between -I and dir per gcc(1)
- it's still better to use ${NETBSDSRCDIR} per other existing Makefiles
2009-09-16 15:08:29 +00:00
pooka 41c00db98c Chop init_sysctl into base nodes (init_sysctl_base.c) and the
kitchen sink (init_sysctl.c).  Further surgery may be needed down
the line.
2009-09-16 15:03:56 +00:00
tsutsui d60368466f Add comments that Makefile.inc should have shared stuff with
src/distrib/utils/x_ifconfig for install media.
2009-09-16 14:59:45 +00:00
pooka 66f04a7703 create interfaces only after ifnef is initialized 2009-09-16 13:30:41 +00:00
pooka 4f50c4bce3 work around tap bug: if /dev/tap<n> was previously non-blocking, newly
opened fd's will also be non-blocking.
(yeayea, i'll fix the kernel some day, but I don't want to reboot
my host OS now)
2009-09-16 13:29:42 +00:00