itojun
524e044ee5
apm emulation, from openbsd
2002-06-18 05:22:50 +00:00
itojun
ddd8d90dc2
KNF (whitespace)
2002-06-18 04:35:02 +00:00
itojun
b00d5fb87a
extern decl for adbHardware
2002-06-18 04:33:36 +00:00
itojun
43397e000b
whitespace
2002-06-14 22:43:38 +00:00
itojun
a7ec566073
#define CAPS_IS_CONTROL will make caps key a control key (with weird
...
LCD indicator). From: "Nathan J. Williams" <nathanw@wasabisystems.com>
(#define name taken from arch/i386/isa/pccons.c)
2002-06-14 22:43:05 +00:00
tsutsui
92896ac2a1
Add a null asm statement in adb_read_date_time()
...
to avoid wrong reordering by gcc-2.95.3 with -fgcse.
XXX Should we disable -fgcse everywhere?
2002-05-05 18:36:03 +00:00
tsutsui
87ebd3218c
Backout previous. It is not timing problem, but gcc optimization bug.
2002-05-05 18:29:06 +00:00
tsutsui
8f9d2b8500
Add a delay() in adb_read_date_time() so that my Apus2000 can get
...
correct date in inittodr().
2002-04-29 10:15:29 +00:00
bouyer
e5727031fb
Implement mstohz() as discussed on tech-kern, and use it in SCSI drivers
...
to convert xs->timeout to callout() parameter.
2002-04-05 18:27:45 +00:00
atatat
31144d9976
Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for
...
indicating an unhandled "command". ERESTART is -1, which can lead to
confusion. ERESTART has been moved to -3 and EPASSTHROUGH has been
placed at -4. No ioctl code should now return -1 anywhere. The
ioctl() system call is now properly restartable.
2002-03-17 19:40:26 +00:00
wrstuden
bf3ef19b7d
Only attach the first adb keyboard as the console kbd. Don't try for
...
the others. It is perfectly reasonable to have multiple adb keyboards,
and a number of multi-button mice have a fake kbd for the second and
third mouse buttons. Now my machine doesn't panic during boot when it
is trying to add a second ws console kbd.
2002-03-12 03:40:12 +00:00
itojun
ac36f7cb2c
bring in latest ALTQ from kjc. ALTQify some of the drivers.
2002-03-05 04:12:57 +00:00
dbj
ed04b7ecb3
add a few missing keys, including f1-f12,home,end,next,prior
2002-03-04 04:03:36 +00:00
dbj
5f15cedc89
solve polled adb keyboard problems with dropped keys and unsynced caps lock
...
by queueing polled keys.
2002-02-24 20:20:20 +00:00
dbj
c467951c58
turn on polling using cnpollc
2002-02-23 10:51:50 +00:00
dbj
b97918f553
In adb_soft_intr, remove the packet from the queue before calling the
...
completion routine so that the completion routine can reentrantly
process the queue. This happens, for example. when polling is turned
on by entering the debugger by keystroke.
2002-02-23 10:47:16 +00:00
thorpej
75dfddd49d
Use bpf_mtap().
2002-01-16 05:56:54 +00:00
dbj
d864c1582a
tweak timings
2002-01-09 05:23:07 +00:00
dbj
f629228e87
Changes to the wdc(4) mi driver that add the WDC_CAPABILITY_SELECT
...
flag and a callback function which gets called whenever a target is
selected on a channel.
The macppc wdc driver needs to reprogram its timing register
differently for each target on a channel each time that target is
selected. I also changed the ATA4_TIME_TO_TICK to use a divisor of
15, which brings our timing calculations consistent with darwin.
These patches fix problems on my dual usb ibook with combo dvd/cdrw
drive because the hard drive supports udma and the combo drive does
not. Without turning off the udma timings in the configuration
register, I cannot access the non-udma combo drive.
2002-01-07 22:11:17 +00:00
dbj
0ac4681659
add support for kgdb over zs
2002-01-06 00:35:10 +00:00
dbj
920e8af571
add some error checks in adb_reinit, enabled with ADB_DEBUG and adb_debug
2002-01-02 20:30:45 +00:00
dbj
32eabd8148
if pm_adb_op times out waiting for an interrupt, attempt to take
...
an interrupt anyway, just in case. Otherwise, report the timout condition.
This works around a problem in my ibook if a key is pressed after boot
and before adb is configured, such as when booting with -d.
2002-01-02 20:28:43 +00:00
dbj
9c182d4af3
defer attaching akbd as console until after it has
...
been initialized in akbdattach
2002-01-02 20:21:12 +00:00
tsutsui
064be15283
Use common macro to check message length.
2001-11-04 12:03:41 +00:00
augustss
1339e88a86
Add a new optional method, dev_ioctl, to the audio hardware driver interface.
...
It is called when an unrecognized ioctl() is performed on a device,
thus allowing ioctl()s that frob the hardware driver (like loading
microcode).
2001-10-03 00:04:47 +00:00
mycroft
9463168fe5
Use WSKBD_TYPE_ADB.
2001-10-02 21:05:39 +00:00
wiz
55fbb5ff57
Grammar improvements in comments.
2001-09-16 16:40:44 +00:00
wiz
456dff6cb8
Spell 'occurred' with two 'r's.
2001-09-16 16:34:23 +00:00
bouyer
a4638cc6d5
Properly initiatize sc->sc_wdcdev.set_modes for non-DMA controllers.
2001-09-09 16:08:49 +00:00
jdolecek
74954dadf9
use unsigned variable types as appropriate
2001-08-05 18:07:51 +00:00
tsubai
3070e77046
Remove (#if 0'ed) m68k asm codes.
2001-08-03 23:09:42 +00:00
bouyer
f7c2f13a54
Properly setup timings for ata-4 controllers, including UDMA modes.
...
Tested on a brand new ("dual USB ?") ibook.
2001-08-02 12:41:39 +00:00
mjl
ab94842af6
Add rnd entropy gathering.
2001-07-26 21:31:45 +00:00
tsubai
1b3871ef0f
Change description of handler-ID == 195.
2001-07-26 11:36:40 +00:00
tsubai
bacce8fb4c
Fix a warning when compiled w/o DDB.
2001-07-26 11:23:37 +00:00
bouyer
21bcee4ec1
Return() if piomode == -1 (i.e. we have no drives), avoid reading an array with
...
a negative offset.
Thanks to Andrew Cagney for pointing this out.
2001-07-25 20:26:33 +00:00
wiz
c5a6be17f4
bcopy -> memcpy, bzero -> memset, bcmp -> memcmp.
...
Reviewed by Matt Thomas, ok'd by Tsubai Masanari.
2001-07-22 11:29:44 +00:00
tsubai
e0cf8bfa8f
Eject PCMCIA card on ohare based models only.
2001-07-17 12:33:45 +00:00
nathanw
dda83b1771
Add the keyboard ID found on the American versions of the PowerBook G4 and
...
iBook (dual USB).
2001-07-12 04:16:58 +00:00
briggs
d0dae0b07e
Allow build with KGDB defined.
2001-07-11 22:11:29 +00:00
briggs
e870bf36b9
There is no other support for KGDB in this driver yet, so ifdef out the
...
call to a non-existent (on macppc) zs_check_kgdb() for now.
2001-06-20 02:01:56 +00:00
wiz
3f9984fc90
existent', not
existant'
2001-06-19 13:42:07 +00:00
simonb
d4bcd9c735
Add/change prototypes so that macpcc builds with -Wstrict-prototypes.
2001-06-19 12:02:55 +00:00
tsubai
1614d87d0e
Support the new iBook.
2001-06-17 19:54:47 +00:00
bouyer
17eff1c958
Pass WDC_CAPABILITY_MODE to the wdc core, so that it will set timings
...
on the drive side too.
Deal properly with the case where master and slave don't have the same timings,
and set PIO timings too.
2001-06-15 10:35:26 +00:00
tsubai
b736ff678e
Use machine/bat.h rather than powerpc/mpc6xx/bat.h.
2001-06-10 15:32:57 +00:00
tsubai
8b0b4ecd3f
Forgot to commit this; s/offb/ofb/.
2001-06-10 13:56:13 +00:00
tsubai
4911bdc582
Use ofb_softc again.
2001-06-10 11:38:21 +00:00
tsubai
27c2892f13
Enable color! call in ofb_putcmap again.
...
Matt, please don't remove codes silently without confirmation.
(At least, leave a log message!)
2001-06-10 10:34:27 +00:00
matt
d2f0c68d47
Make macppc compile by default with -Wall -Wmissing-prototype in addition
...
to its currently enabled warnings. For the lack of a better place, most
global function prototype wound up in <machine/autoconf.h> unless there
was a better place for them. ofb_* structs renamed to offb_* to avoid
conflict with ofb_softc in <dev/ofw/openfirm.h>
2001-06-08 00:32:01 +00:00