Commit Graph

1093 Commits

Author SHA1 Message Date
macallan
f5a0fe39db add panel driver 2009-05-14 01:13:21 +00:00
macallan
2fbe60d5a7 add major number for sysmon 2009-05-14 01:12:58 +00:00
macallan
251df1a41e add a driver for the Indy's front panel buttons.
- power button presses are reported to sysmon
- volume control buttons are reported to PMF
TODO: add better key repeat code. The hardware keeps firing interrupts at us
whenever a button is down and not on - say - status change. If we don't clear
the interrupt we'll be fired on until someone clears it. We should probably
disable the entire interrupt and occasionally poll for button release.
2009-05-14 01:10:19 +00:00
macallan
9fc471919e set delta value for the mixer's master channel 2009-05-14 01:06:15 +00:00
macallan
e6c0357236 remove leftover debug code 2009-05-12 23:51:25 +00:00
tsutsui
a0a1d7acfb Use __func__ to print function names. 2009-05-09 18:31:46 +00:00
uebayasi
58141c8949 Include sys/device.h. Fix build. 2009-04-03 15:41:14 +00:00
uebayasi
8e4e2fe06d Include sys/evcnt.h for struct evcnt, not sys/device.h. 2009-04-03 14:47:48 +00:00
macallan
31e90ebd10 add a few more register definitions, needed by the latest crime_drv. 2009-03-26 04:11:58 +00:00
cegger
df7f595ecd Ansify function definitions w/o arguments. Generated with sed. 2009-03-18 10:22:21 +00:00
tsutsui
31b444f9ae Add a dumb RX hardware TCPv4/UDPv4 checksum support. 2009-03-16 09:58:51 +00:00
tsutsui
312e117cb9 - use <bsd.klinks.mk> to create MD include dir symlinks
- make sure to remove lib subdirs on clean and distclean target
2009-03-15 15:20:12 +00:00
dsl
82357f6d42 ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
2009-03-14 21:04:01 +00:00
dsl
454af1c0e8 Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
2009-03-14 15:35:58 +00:00
msaitoh
f9ccf64b65 Fix typo(s/interupt/interrupt/) 2009-03-05 01:38:12 +00:00
macallan
fd92054616 No need to have two pre-defined screen types - just adapt to whatever video
mode we find. Also, redraw screen when X exits.
TODO: find out why characters are drawn upside down, for some bizarre reason
      this happens right after exiting X but the last line is normal.
2009-03-04 01:23:28 +00:00
macallan
74c35b5de8 Comment out some register initialization which the firmware should have taken
care of anyway. Apparently doing this here disrupts newport's blitter
operations and causes a deadlock.
2009-03-03 19:45:55 +00:00
sekiya
223c75c0bc Un-hardcode IP32 serial console bus tags. Fixes regression introduced in revision 1.28. 2009-02-25 09:37:22 +00:00
sekiya
b73781ae2c Pull in Atheros HAL. 2009-02-20 12:57:06 +00:00
he
aa2d981102 The attribute for if_le_oioc.c should apparently be le24, not le,
so that this file is not pulled into the GENERIC32_IP3x kernel,
where am7990.c isn't built.
2009-02-13 23:55:33 +00:00
apb
0cc72e51ac Use "defopt MODULAR" in sys/conf/files, and #include "opt_modular.h"
in all kernel sources that use the MODULAR option.
Proposed in tech-kern on 18 Jan 2009.
2009-02-13 22:41:00 +00:00
macallan
50f7b2a157 Don't bother drawing a cursor until wsdisplay attaches. This works around
the deadlock I've seen with the previous version.
While there do some KNF policing.
2009-02-13 17:50:36 +00:00
rumble
85716c44d5 Enable Personal IRIS 4D/20 and 4D/25 support:
- Adapt int(4) to handle the INT1 chip
  - Move generic rtc clocks out of hpc/ and into dev/
  - Handle the very strangely wired eeprom and other bits in arcemu
  - Sprinkle MACH_SGI_IP6 as necessary
  - Enable IP6/IP10 devices in GENERIC32_IP12. Yes, the naming is poor but
    there's no winning with kernel/hw compatibility on sgimips...

Tested on my 4D/25. Doesn't (appear to) break macallan@'s IP22.
2009-02-12 06:33:56 +00:00
rumble
0e95582ed1 WD33C93 has only two registers, which often times aren't mapped to adjacent
bus space locations. Map them individually, instead.
2009-02-12 06:24:45 +00:00
macallan
d6232854b7 Become a good vcons citizen.
Also, don't use the cursor sprite as text cursor - it's not worth the pain and
the sprite doesn't have an invert-background plane either so the cursor wasn't
transparent.
Instead blit the cursor using the appropriate ROPs. This way we get rid of the
cursor misplacement problem as well.
While there also use device_t.
TODO: arbitrary font sizes, cleanup, support for mapping all blitter registers
so we can use them from X.
2009-02-12 02:29:58 +00:00
rumble
129b85dd87 IP6/IP10 known as 'Eclipse'. 2009-02-10 06:12:27 +00:00
rumble
439e902ae2 Be selective on match, since it makes sense to combine an IP12 and IP6
kernel and IP6 has no GIO bus.
2009-02-10 06:11:49 +00:00
rumble
4fcfe1330c Ready these for IP6. 2009-02-10 06:10:50 +00:00
rumble
b610ccb0d6 Check in work in progress of Personal IRIS 4D/20 and 4D/25 support (IP6
and IP10, respectively).
2009-02-10 06:04:56 +00:00
macallan
4aae227a17 A bunch of bugfixes:
- set blitter direction appropriately so scrolling downwards works now
- remove a bunch of false +1 so we only copy/erase what we really need to
- slightly change the logic for the cursor sprite offset so it works on this
  Indy ( I think what matters is VC2 revision 0 )
TODO: virtual consoles, fonts wider than 8 pixels
2009-02-10 03:40:26 +00:00
macallan
589ddc1d0a add a few more register definitions 2009-02-10 03:35:29 +00:00
jym
92ae85d18e Changes to MEMORY_RBFLAGS option:
- renamed to MEMORY_DISK_RBFLAGS to better fit the rest of the
MEMORY_DISK options(4)
- change default value to RB_AUTOBOOT instead of RB_SINGLE, and adapt
the config(5) files accordingly
- document this option inside options(4)

See also http://mail-index.netbsd.org/tech-kern/2008/12/25/msg003924.html

Reviewed by abs@ in private mail.
2009-02-06 18:50:26 +00:00
jym
78f949082f Fix some whitespace and indentation. No functional change. 2009-02-06 18:34:19 +00:00
tsutsui
398fb3fdca - use device_t and cfdata_t
- rename variables for readability after device_t/softc split
- use proper pointer types

No binary changes.
2009-01-27 11:26:15 +00:00
bjh21
11aab16b02 Split device_t from wd33c93_softc. Reviewed by cube; tested on sgimips
by tsutsui.
2009-01-25 15:23:42 +00:00
mrg
c6a4afa995 add COMPAT_50 to all the configs with COMPAT_40. 2009-01-24 05:06:05 +00:00
jmcneill
db842c7394 add pseudo-device drvctl 2008-12-23 13:14:22 +00:00
christos
9a5d3f2817 replace bitmask_snprintf(9) with snprintb(3) 2008-12-16 22:35:21 +00:00
martin
719a906ef5 As discussed on tech-kern: mutex_init is too heavyweight for early bootstrap
phases, so move the initialization of the ksyms mutex back into main via
a function called ksyms_init. Rename the existing (but quite different)
ksyms_init* variations into ksyms_addsyms_elf() and ksyms_addsyms_explicit()
and adapt machdep code accordingly.
2008-11-30 18:21:31 +00:00
he
0f2d00e5bc Don't be lazy and let one directory's Makefile install an include
file from another directory, as that only causes problems with
mtree later on when encountering the /.. path component.  Instead,
descend into dev/ and use the Makefile there to install dev/crmfbreg.h
in the appropriate directory.
2008-11-25 09:47:40 +00:00
ad
6ba528b5bc Remove softdep, pass 1. We are focused on improving journalling.
Proposed on tech-kern@.
2008-11-24 11:41:07 +00:00
ad
0efea177e3 Remove LKMs and switch to the module framework, pass 1.
Proposed on tech-kern@.
2008-11-12 12:35:50 +00:00
dyoung
94d985722a It is not appropriate to call pmf_system_shutdown(9) from
doshutdownhooks(9): shutdown hooks registered by shutdownhook_establish(9)
expect to be called with interrupts disabled, but shutdown hooks
registered with pmf_device_register1(9) expect to be called with
interrupts enabled.  So I have made two changes:

1 Do not call pmf_system_shutdown() from doshutdownhooks().  Instead,
change every call to doshutdownhooks() to a call to doshutdownhooks()
followed by a call to pmf_system_shutdown().  No functional change
is intended by this change.

2 Make i386 re-enable interrupts briefly while it calls
pmf_system_shutdown().  I leave it to others either to fix the
other ports, or to factor out some MI shutdown code, as joerg@
suggests, and fix that.  Note that a functional change *is* intended
by this change.

I hope that this patch will stop us from flip-flopping between
calling doshutdownhooks() and pmf_system_shutdown() sometimes with
and sometimes without interrupts enabled.
2008-11-11 06:46:40 +00:00
macallan
9263b0c23b add a couple more registers 2008-11-06 22:16:03 +00:00
macallan
61277fe87d install crmfbreg.h 2008-11-06 22:15:39 +00:00
apb
f46c1de7cb Use ${TOOL_SED} instead if plain sed in Makefiles. 2008-10-25 22:27:34 +00:00
apb
96230fab84 Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.
2008-10-19 22:05:19 +00:00
tsutsui
c0b4306a0b Pacify haltwo audio on shutdown hook to avoid noise on poweroff. 2008-08-24 13:03:39 +00:00
tsutsui
8d58f49e0b If 802.1Q VLAN MTU is enabled, ignore the bad packet errror on RX. 2008-08-23 18:44:51 +00:00
tsutsui
1db87857ed KNF and misc cosmetics. 2008-08-23 17:43:36 +00:00