Commit Graph

398 Commits

Author SHA1 Message Date
christos
53524e44ef Kill caddr_t; there will be some MI fallout, but it will be fixed shortly. 2007-03-04 05:59:00 +00:00
thorpej
16ed6645b5 TRUE -> true, FALSE -> false 2007-02-22 05:31:52 +00:00
thorpej
712239e366 Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
2007-02-21 22:59:35 +00:00
mrg
4410329b87 add a pair of new bus_dma(9) functions:
int _bus_dmatag_subregion(bus_dma_tag_t tag,
				  bus_addr_t min_addr,
				  bus_addr_t max_addr,
				  bus_dma_tag_t *newtag,
				  int flags)
	void _bus_dmatag_destroy(bus_dma_tag_t tag)

that allow a (normally broken/limited) device to restrict the bus address
range it can talk to.  this is used by bce(4) to limit DMA addresses to
1GB range, the maximum the chip can address.

all this is from Yorick Hardy <yhardy@uj.ac.za> with input from several
people on tech-kern.

XXX: bus_dma(9) needs an update still.
2007-02-21 20:41:23 +00:00
ad
3363855a4a Remove spllowersoftclock() and CLKF_BASEPRI(), and always dispatch callouts
via a soft interrupt. In the near future, softclock will be run from process
context.
2007-02-16 02:53:43 +00:00
ad
b07ec3fc38 Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
kiyohara
e3e6e213ed follows to style guide and C99.
Add ARGSUSED and __unused.
  Remove braces at return.
Use device_private() and aprint_*().
2007-01-21 11:01:09 +00:00
yamt
8bf7662829 merge yamt-splraiseipl branch.
- finish implementing splraiseipl (and makeiplcookie).
	  http://mail-index.NetBSD.org/tech-kern/2006/07/01/0000.html
	- complete workqueue(9) and fix its ipl problem, which is reported
	  to cause audio skipping.
	- fix netbt (at least compilation problems) for some ports.
	- fix PR/33218.
2006-12-21 15:55:21 +00:00
wiz
6919c6578c s/independant/independent/, from Zafer. 2006-11-24 22:04:21 +00:00
plunky
57c0199dcf Tidy away wsmouse_input() abstractions and update
documentation to include the W direction.
2006-11-12 19:00:42 +00:00
jmmv
7a13fe4abf Remove tmpfs's experimental status. OK'ed by core@. 2006-11-11 18:47:08 +00:00
uwe
523122cd3e Nuke GPROF cargo-cult I've been cut-n-pasting around in my drivers. 2006-10-27 00:08:32 +00:00
uwe
6ac2d0e699 Revert previous that apparently has been committed by mistake.
It actually contained just some debugging printfs, and *wrong*
debugging printfs at that (hi, jared :)
2006-10-22 00:33:14 +00:00
jmcneill
f135e0d607 Add "name" parameter to powerhook_establish, to aid debugging. No objections
on tech-kern@
2006-09-24 03:53:07 +00:00
uwe
57675076eb Switch the rest of sh3 ports to todr(9)
Split code to handle on-chip rtc into a separate driver
Eliminate all todr code from clock.c
Move __HAVE_GENERIC_TODR to sh3/include/types.h
2006-09-20 00:41:11 +00:00
christos
e0df1e4c51 PR/34283: Gene ENonymous: Add IPFILTER_LOOKUP to the default kernel options
Also remove CCITT,NS,NIP
2006-08-26 20:26:43 +00:00
tsutsui
6ff205ce76 Remove obsolete #options VERIFIED_EXEC, found by grep(1). 2006-08-26 07:59:21 +00:00
uwe
01cddb97a0 Refer sc_font.wsfont explicitly instead of playing cast tricks. 2006-08-18 00:41:57 +00:00
uwe
4fc8146812 Whether hd64461video is console is not is irrelevant to powering it up
on PWR_RESUME.  Drop that bogus test and check whether the screen was
blanked instead to corerctly reflect blanked status across suspends.
2006-08-14 02:34:04 +00:00
drochner
84f50d1b92 don't install <machine/db_machdep.h>, this is kernel only 2006-07-26 19:54:56 +00:00
uwe
43d9f78e91 Using "irq" in different functions to either x or 1<<x is confusing.
Rename.
2006-07-22 02:13:06 +00:00
uwe
c50fbd7f2b We don't need to update HD6446X_NIMR when (dis)establishing an
interrupt as splx will update it from the recomputed mask anyway.
2006-07-22 01:53:49 +00:00
uwe
485a350c1b hd6446x_intr_priority_update: simplify. 2006-07-22 01:34:55 +00:00
uwe
e8ceae81ee Shave off one instruction in hd6446x_intr_raise. 2006-07-22 01:16:16 +00:00
gdamore
34537908ab Add an option COM_REGMAP to allow com(4) to use an array of register indices.
This allows us to convert aucom to just another com attachment, and cleanup
some code in the com_arbus.c.

Additionally, we use a common com_cleanup routine rather than having a
zillion copies of it in the attachment points.

This has been tested on a number architectures, and it has been shown to get
close to comparable performance when COM_REGMAP is defined, and comparable
when it is not defined.

Approved by core@.  Fixes PR port-evbmips/32362.
2006-07-13 22:56:00 +00:00
liamjfoy
aeee5deab9 Add CARP to GENERIC kernel configs. CARP is not enabled by default.
ok: christos
2006-06-28 15:19:27 +00:00
uwe
e81e00a1ad s/0/NULL/ when dealing with pointers. 2006-05-31 22:48:48 +00:00
uwe
cac00f2e06 Use C99 syntax for designated initializers.
Semicolon syntax is a gcc extension and has been obsolete since gcc 2.5.
2006-05-31 22:40:38 +00:00
uwe
828f707790 Add more "static" so that only j6x0tp_ca (and j6x0tp_debug) are visible. 2006-05-23 01:34:49 +00:00
tsutsui
9c7179ce5d Remove declarations for cpu_model[] since it's in <sys/systm.h>. 2006-04-09 01:18:14 +00:00
uebayasi
8572d2c144 Stop using linker scripts on all sh3 ports.
The only information to be compensated is text section start address.
The default value is set arch-wise as DEFTEXTADDR.  Each kernel config
can override the default value by setting TEXTADDR.

Tested on COMPUTEXEVB (evbsh3).

Reviewed By:	uwe
2006-03-17 16:06:51 +00:00
uwe
042caffba8 XXX: #undef SET before including <machine/config_hook.h>, which defines
SET as a nickname for CONFIG_HOOK_SET to be used in kernel config files.
Makes ioconf.c compile again.
2006-03-09 23:41:13 +00:00
lukem
a1f606d3fd Use the SI capitalization for "Hz", "kHz", and "MHz" in comments and strings.
Add a space between numbers and Hz unit.
2006-03-08 23:46:22 +00:00
uwe
c65ca10378 ANSI: Use 'void' in the definition of function w/out arguments.
While here, add 2006 to the copyright.
2006-03-05 02:17:47 +00:00
peter
8926b88509 Fix two typos. 2006-03-04 17:35:31 +00:00
uwe
970e24ee46 s/u_intN_t/uintN_t/ 2006-03-04 01:55:03 +00:00
yamt
ec5a93183a merge yamt-uio_vmspace branch.
- use vmspace rather than proc or lwp where appropriate.
  the latter is more natural to specify an address space.
  (and less likely to be abused for random purposes.)
- fix a swdmover race.
2006-03-01 12:38:10 +00:00
uwe
2817b4e30f Report power status to apm. Reported are AC on/off, batter absent,
battery is being charged, and estimated battery percentage (thanks to
Joseph Heenan for battery discharge measurements).
2006-02-26 03:25:44 +00:00
uwe
9c1b217d35 Cosmetic. Consistenly use return without parens as new KNF requires.
Move assignment out of conditional expression.
2006-02-25 16:43:36 +00:00
cube
3ca5c26836 Rework hpcapm(4) attachment definition so it is not required to attach at
mainbus, and convert its two users, hpcsh and hpcmips, to that.

Many thanks to Valeriy Ushakov and Ben Collver for testing.
2006-02-24 13:06:12 +00:00
uwe
2889a03e1b Order functions so that there's a logic order.
Add comments.  Misc cosmetic.
2006-02-23 01:43:47 +00:00
uwe
ea99f7e98d s/STATIC/static/
Propagate "static" to function definitions.
2006-02-23 00:46:31 +00:00
uwe
c1da9d59ec Fix quoting for (commented out) KGDB_DEVNAME examples. 2006-02-15 01:16:19 +00:00
cube
6ff13154dd Remove 'count' argument for pseudo-devices that ignore it
(vnd, bpfilter, ppp, gif, gre, tun, sl, strip, faith, stf).
2006-02-05 05:01:48 +00:00
rpaulo
e1c6b6ed0f bpfilter doesn't accept count anymore. 2006-02-04 02:53:13 +00:00
reinoud
a92fdbbc53 Add commented out UDF file-system entry in all GENERIC configurations. 2006-02-02 21:32:08 +00:00
uwe
8b5ad019f4 ANSI'ify functions without arguments. Use uintN_t.
Use for (;;) continue; for unreachable infinite loops, as lint is
somehow more happy about them.
2006-01-24 22:32:19 +00:00
uwe
285c8456c2 Use cpp-safe labels. Provide .size 2006-01-23 00:17:20 +00:00
uwe
66fe637660 LINTSTUBs. 2006-01-23 00:07:43 +00:00
uwe
897e70ab5c Provide .size 2006-01-22 05:16:58 +00:00