Commit Graph

451 Commits

Author SHA1 Message Date
uwe
aa1315c604 Cosmetic. Use device_xname. Don't compile debugging support. Drop
out-of-date comment for j6x0tp_attach (we haven't been using submatch
for quite a while).
2007-06-01 17:44:46 +00:00
uwe
6542efa4c8 Add COMPAT_40. 2007-06-01 14:30:32 +00:00
uwe
d3c68aea21 Cosmetic. Propagage "static" to definitions. Don't use // comments.
Add comments to mark machdep hpcapm functions and pertinent vars.
2007-03-13 03:00:49 +00:00
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
uwe
7bff50c8fd LINTSTUBs. 2006-01-22 05:14:02 +00:00
uwe
131f43967d pfckbd_input: make edge and mask unsigned ints to avoid lint warning
about obscure semantics change in ANSI C.  Saves one extu.w too.
Move edge assignment out of if conditional expression.
2006-01-21 23:16:57 +00:00
uwe
4c693ad431 Use C99 __func__ instead of gcc __FUNCTION__ to make lint happy. 2006-01-21 22:55:34 +00:00
uwe
08c90217fd Use NULL, not 0 for null pointer.
Fix #else/#endif trailing comment.
Use explicit "continue" for the body of the infinite loop.
2006-01-20 04:30:03 +00:00
uwe
9e88e2f24a Use uint32_t. Declare jump and boot functions noreturn. Move scratch
variable to outputs of the asm statement that tweaks sr, so that gcc
doesn't insist on it being initialized.  Move boot function template
closer to instantiation.  Misc prettification.
2006-01-20 03:55:55 +00:00
uwe
fb7bfe44d7 #include "opt_md.h" as this file uses MEMORY_DISK_* options. 2006-01-13 22:18:59 +00:00
uwe
6922812a19 Spell HP 620LX correctly.
A comment about scif(4) should refer SCIFCONSOLE.  SCICONSOLE is for sci(4).
Add a comment before hd64461if, so that it's clear it's not for PERSONA only.
Add (commented out) HD64461{PCMCIA,VIDEO}_DEBUG, HD64461VIDEO_HWACCEL.
2006-01-03 01:47:37 +00:00
uwe
68ef13b0ba HD64461VIDEO options now come from "opt_hd64461video.h". 2006-01-03 01:15:47 +00:00
uwe
63bf4c684b Properly defflag HD64461VIDEO_HWACCEL to opt_hd64461pcmcia.h (new file).
Put HD64461VIDEO_DEBUG there as well to minimize impact on unrelated
sources.
2006-01-03 01:15:04 +00:00
uwe
b2a5d74369 Fix constification fallout under #ifdef HD64461PCMCIA_DEBUG. 2006-01-03 01:07:54 +00:00
uwe
dd228393cb HD64461PCMCIA options now come from "opt_hd64461pcmcia.h". 2006-01-03 01:06:45 +00:00
uwe
346947ed0e Put HD64461PCMCIA_REORDER_ATTACH to opt_hd64461pcmcia.h (new file).
Put HD64461PCMCIA_DEBUG there as well to minimize impact on unrelated
sources.
2006-01-03 01:05:55 +00:00
uwe
8214ff33f4 Be more consistent about whitespace. 2006-01-03 00:54:56 +00:00
perry
50a256a3a0 __asm__ -> __asm
__const__ -> const
__inline__ -> inline
__volatile__ -> volatile
2005-12-24 23:23:59 +00:00
uwe
902411e7f8 Use ANSI uintN_t types. 2005-12-18 23:40:03 +00:00
uwe
5e6b9ca4dd Use ANSI uintN_t types. Propagate "static" to function definitions. 2005-12-18 23:38:01 +00:00
uwe
3029fe439a Use explicit "continue" for busy loop bodies in a couple of places I
missed in the previous commit.
2005-12-18 23:32:39 +00:00
uwe
a6af1cec86 Use ANSI uintN_t types. Use "void" in definitions of functions
without arguments.  Propagate "static" to function definitions.
Declare local functions static.  Hide acceleration code inside ifdef
HD64461VIDEO_HWACCEL (save more than 1K of text).
2005-12-18 23:20:03 +00:00
uwe
bfbda844db Use ANSI uintN_t types. Use "volatile" without extra __'s.
Use "void" in definitions of functions without arguments.
Propagate "static" do function definitions.
2005-12-18 22:19:56 +00:00
uwe
2d4890dc44 Don't include sys/boot_flag.h only to get sys/reboot.h pulled in,
include the latter directly instead.  Include hd64461*reg.h only under
DEBUG, where they are used.  In hd64461_match use fallthrough.
2005-12-18 22:07:56 +00:00
uwe
952389de29 Use ANSI unitN_t types. Use "void" when defining functions with no args.
Propagate "static" to function definitions.
2005-12-18 21:52:41 +00:00
uwe
2c9f460b01 Multiple-inclusion protection. 2005-12-18 21:47:10 +00:00
uwe
b4800dcaa7 Use ANSI unitN_t types. 2005-12-18 21:46:15 +00:00
uwe
51952dd360 Multiple-inclusion protection. Use ANSI uintN_t types. Fix few
whitespace nits.  Add "extern" to function declarations.  Drop LOCORE
protection, this file is not included in any asm sources, it has
nothing interesting for asm sources anyway.
2005-12-18 21:44:27 +00:00
uwe
962a056ac8 Drop unnecessary include. Add few blank lines for better readability. 2005-12-18 21:25:55 +00:00
uwe
4ebaf8108c Use ANSI uintN_t types. Functions w/out arguments should have "void"
in their definitions.  Declare local function static.
2005-12-18 21:20:48 +00:00
uwe
7351da46fb Use ANSI unitN_t types. Add 'extern' to extern function declarations.
Shuffle declaration order to make it more clear that raise/resume come
from a different file.
2005-12-18 19:48:43 +00:00
uwe
24d1ad311b Multiple-inclusion protection. 2005-12-18 19:31:30 +00:00
uwe
fb2feef0c6 Simplify j6x0lcd_contrast_raw. 2005-12-18 19:09:26 +00:00
uwe
d5c16305fc Convert few remaining K&R function definitions to ANSI. 2005-12-18 18:59:48 +00:00
christos
801713f68b proc -> lwp 2005-12-14 00:08:34 +00:00
christos
95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
elad
4591e5acfd Add (commented out) Veriexec options and pseudo-device to GENERIC kernels,
and remove the i386 GENERIC_VERIEXEC config.
2005-12-09 23:34:01 +00:00
tsutsui
ff9b47d69e Adjust comments for options FFS_NO_SNAPSHOT.
XXX: This option should be mentioned in options(4).
2005-12-07 09:10:11 +00:00
uwe
6ac484d14b Whitespace nit. 2005-09-23 23:29:29 +00:00
yamt
d597202302 make VMSWAP optional again. 2005-09-17 14:38:38 +00:00
yamt
7e71f567e4 include "conf/std". 2005-09-17 09:44:05 +00:00
jmmv
ec93365612 Initial addition of tmpfs, an efficient memory file-system. This project
was developed as part of Google's Summer of Code 2005 program.  This
change adds the kernel code, the mount_tmpfs utility, a regression test
suite and does all other related changes to integrate these.

The file-system is still *experimental*.  Therefore, it is disabled by
default in all kernels.  However, as typically done, a commented-out
entry is added in them to ease its setup.

Note that I haven't commited the required mountd(8) changes to be able
to export tmpfs file-systems because NFS support is still very unstable
and because, before enabling it, I'd like to do some other changes.

OK'ed by my project mentor, William Studenmund (wrstuden@).
2005-09-10 19:20:48 +00:00
kiyohara
7463900213 Reorder. 2005-09-05 19:05:20 +00:00
kiyohara
17587c6104 Support LCD screen driver for PERSONA SH3 machines. 2005-09-05 18:54:10 +00:00
uwe
88fc0ed1ac Since we have ipf/pf in the config (commented out), add pertinent
options as well (commented out too).
2005-09-04 16:07:46 +00:00
uwe
13830db076 Tell hpcfb that framebuffer fetches 16-bit pixels as little endian. 2005-09-04 01:01:29 +00:00
uwe
b2023157bb Add WSDISPLAY_CUSTOM_OUTPUT &co. 2005-08-28 00:28:41 +00:00
drochner
44bf0a7ee2 s/locdesc_t/int/g 2005-08-26 13:19:34 +00:00
christos
93c362d7ef Enable ptyfs by default on the non-install and non small/tiny/ramdisk kernels 2005-08-19 05:19:49 +00:00
christos
758a209d23 64 bit inode changes. 2005-08-19 02:03:49 +00:00
uwe
6b95067c33 Support HP 620LX. On/off and brightness are the same as in 680.
Contrast control is different but similar enough, so refactor the code
to support both.  Tested by Christer Andersson.

XXX: platid_mask_MACH_HP_LX also matches 360LX.  It's not confirmed
whether touch panel in 360LX is connected in the same way.  We may
need to regroup platid masks.
2005-08-03 22:25:17 +00:00