matt
702b27ec2c
Back out change to print irq.
2001-02-27 07:34:15 +00:00
matt
2184b08f72
Enable a fix so that PowerBook(FireWire) keyboards work. This
...
should also work on iBooks and PowerBook(WallStreet). And if
we're really lucky, on the new G4 laptops.
2001-02-27 07:33:17 +00:00
matt
c09a88dca3
Be a bit more defensive.
2001-02-27 05:16:33 +00:00
matt
22d63778fc
Add a gpio device to handle the gpio device & extint-gpio1
...
interrupt. (think ibook/powerbook)
2001-02-27 05:15:03 +00:00
matt
25b977c685
print out irq on unconf devices.
2001-02-27 03:47:02 +00:00
wiz
0a4ef18ab8
add handling for the input channel selection/volume (no recording yet,
...
just the mixer interface)
2001-02-26 21:07:51 +00:00
tsubai
d0a3070c40
Generate key press event and key release event when capslock is pressed.
...
Now capslock key works correctly on X11.
2001-01-25 14:08:55 +00:00
wiz
ec35b8d060
Make output selection work -- you can use lineout now instead of the
...
internal loudspeakers.
2001-01-25 13:39:22 +00:00
sommerfeld
851de295eb
Change pci_intr_map to get interrupt source information from a "struct
...
pci_attach_args *" instead of from four separate parameters which in
all cases were extracted from the same "struct pci_attach_args".
This both simplifies the driver api, and allows for alternate PCI
interrupt mapping schemes, such as one using the tables described in
the Intel Multiprocessor Spec which describe interrupt wirings for
devices behind pci-pci bridges based on the device's location rather
the bridge's location.
Tested on alpha and i386; welcome to 1.5Q
2000-12-28 22:59:06 +00:00
wiz
7ae9423d3b
Honour SCSI command timeout -- fixes problems with SCSI commands that take
...
longer than 10s and were falling into a timeout, e.g. fixating.
2000-12-24 02:42:04 +00:00
tsubai
a255931f5c
Remove unnecessary casts.
2000-12-19 03:13:40 +00:00
tsubai
438b1e68e0
Add support for Kensington Turbo Mouse.
2000-12-19 02:59:23 +00:00
tsubai
0f4768af30
Sync with mac68k.
2000-12-19 02:50:11 +00:00
thorpej
b84f740be0
Move bpfattach()/bpfdetach() calls into ether_ifattach()/ether_ifdetach().
2000-11-15 01:02:11 +00:00
wrstuden
10c4684193
Use wdc_print_modes() so that we get to see what DMA modes
...
are used with a drive.
2000-11-08 17:50:44 +00:00
wrstuden
029bdd3185
Adjust to change in tty line discipline handling.
2000-11-03 18:50:49 +00:00
tsubai
3d213115f4
Don't match if nintr > 12 (more than 3 cells).
2000-11-03 12:26:06 +00:00
tsubai
bcb05a2f55
Get 6 interrupt cells from OF.
2000-11-03 12:20:55 +00:00
tsubai
2fe4478f19
Don't assume 12x22 font.
2000-11-02 14:25:51 +00:00
eeh
8c3f6a0d10
Adapt to new line discipline scheme.
2000-11-02 00:37:56 +00:00
tsubai
08e43d95ca
Don't set M_HASFCS flag twice.
2000-11-01 20:21:58 +00:00
tsubai
b4b571ccb9
Match "chrp,mesh0".
2000-10-31 16:57:07 +00:00
tsubai
756f954ef1
Fix Conner CFP1080 problem (pr 7612) and add debugging messages.
2000-10-23 21:04:27 +00:00
matt
b30ca78c9b
Packets have the FCS append so set M_HASFCS.
2000-10-18 05:43:13 +00:00
tsubai
03251ccf07
Pass correct packet length to the upper layer.
2000-10-17 15:57:51 +00:00
thorpej
7ca3fb9ef0
Move the check for "promisc + unicast + not for us" into ether_input(),
...
and change Ethernet drivers to always pass all received frames to
ether_input() (with a few exceptions, which are documented in the
code).
2000-10-01 23:32:39 +00:00
tsubai
442b9b5df2
Get the correct OF node of the screen because PowerBooks have two screens
...
in one PCI device.
2000-10-01 19:08:30 +00:00
tsubai
2e72bb2b72
Add fr key layout. (From Manuel Bouyer, modified by me)
2000-09-01 16:00:38 +00:00
tsubai
077c9ca312
Enable hash filter mode.
2000-08-28 11:27:44 +00:00
tsubai
308d7eb3e4
Add (experimental) awacs audio driver. Output (play) only.
2000-08-25 12:44:42 +00:00
tsubai
5558e41363
New PowerBook (firewire) seems to use edge-triggered interrupt.
...
XXX cannot hot-plug yet
2000-08-23 12:18:17 +00:00
mrg
28d898391b
remove include of <vm/vm.h>. <vm/vm.h> -> <uvm/uvm_extern.h>
2000-06-29 08:10:45 +00:00
mrg
4c698e84f6
<vm/vm_param.h> -> <uvm/uvm_param.h>
2000-06-26 14:58:58 +00:00
simonb
889c658b5b
Change the kernel mmap interface so that the offset to map is an
...
"off_t" and the return value is a "paddr_t" to allow mappings
at offsets past 2^31 bytes. Somewhat inspired by FreeBSD, which
only changed the offset to a "vm_offset_t".
Includes updates for the i386, pc532 and sh3 mmmmap from Jason Thorpe.
2000-06-26 04:55:19 +00:00
tsubai
1155f3af58
Allow mmap of frame buffer registers.
2000-06-19 19:35:20 +00:00
tsubai
96964a6455
Use ether_crc32_le().
2000-06-16 14:18:55 +00:00
tsubai
2931ec17b7
Forgot to commit this.
2000-06-15 19:09:15 +00:00
tsubai
736d4273e2
Implement multicast address filter. (Stolen from hme.c)
2000-06-15 18:36:52 +00:00
tsubai
649f6d3838
Sync with mac68k.
2000-06-08 22:10:45 +00:00
tsubai
4c15219d3b
* Access hardware directly in zscn* instead of calling OF.
...
* Clean up.
2000-06-07 17:37:07 +00:00
nisimura
4371d91433
Have MI ncr53c9x_attach() the 2nd and 3rd arguments for scsipi_adater
...
and scsipi_device respectively, with size reduction of ncr53c9x_softc.
Specifying NULL instructs the driver to use default adapter and default
device codes. Every target port has ncr53c9x_attach(sc, NULL, NULL) anyway.
2000-06-05 07:59:50 +00:00
tsubai
f12221a5f5
Modify DMA access timings.
2000-05-23 13:20:58 +00:00
tsubai
dd83a9aa4f
Make this compile.
2000-04-14 10:22:06 +00:00
tsubai
2ca39ceddf
Make this compile again.
2000-04-07 14:35:58 +00:00
tsubai
b18b370715
Make sure color rgb:0/0/0 is black.
2000-04-02 12:53:05 +00:00
tsubai
7df13bfec7
Enable wdc1 (needed on StarMax).
2000-04-02 12:36:38 +00:00
tsubai
e352cada4b
Make this compile again.
2000-04-02 12:03:04 +00:00
tsubai
f8a898cb1d
Use ring buffer on tx side, too.
2000-03-26 09:15:17 +00:00
tsubai
d806694e39
Fix typo.
2000-03-26 08:29:12 +00:00
thorpej
7b918b4088
New callout mechanism with two major improvements over the old
...
timeout()/untimeout() API:
- Clients supply callout handle storage, thus eliminating problems of
resource allocation.
- Insertion and removal of callouts is constant time, important as
this facility is used quite a lot in the kernel.
The old timeout()/untimeout() API has been removed from the kernel.
2000-03-23 06:40:33 +00:00
thorpej
a183d34f04
- Implement cnbell() -- ring the console bell. The cn_bell entrypoint
...
is optional.
- Add cn_bell to statically allocated consdevs as appropriate.
2000-03-06 21:36:05 +00:00
tsubai
30370336dc
Use ring buffer on tx side, too.
2000-03-04 11:17:00 +00:00
tsubai
0468fe97e4
Don't use hardcoded speed value when this is a console. Instead, read
...
from zs. (because OF-3.x uses 57600 bps)
2000-02-27 20:31:57 +00:00
tsubai
6f4bb03178
Initial version of gmac ethernet driver.
...
XXX doesn't work well yet.
2000-02-27 18:00:55 +00:00
tsubai
dcb9f03bd3
Use dev/rasops instead of dev/rcons.
2000-02-09 13:08:35 +00:00
tsubai
45fe0e4077
Fix typo.
2000-02-08 08:08:43 +00:00
tsubai
b9ff560bcc
Don't print "... not configured" message for non real devices
...
like escc-legacy.
2000-02-07 20:30:05 +00:00
thorpej
eed75dbc26
Don't dry to diving MIIF_NOISOLATE in the PHY drivers. Instead, pass
...
flags down from the parent to child vi mii_attach().
2000-02-02 17:09:38 +00:00
thorpej
84dc99fdea
Bring some order to the chaos which was the MII code function naming
...
"conventions".
2000-02-02 08:05:26 +00:00
tsubai
22a3504708
Make this work on the G4 too.
2000-01-27 17:39:20 +00:00
tsubai
6b26a49ee9
Use MII device layer.
...
XXX still 100Mbps receive side is very slow...
2000-01-25 14:38:39 +00:00
tsubai
969c226b5b
Match "keylargo".
2000-01-23 10:01:44 +00:00
tsubai
16ea7fbbbb
Match "keylargo-ata".
2000-01-21 18:45:14 +00:00
takemura
ba04c55ed3
Absolute pointing device support.
...
- Wsmouse_input() get new argument 'flag', which indicates whether x/y/z are
relative or absolute.
- Wsmouse get new io controls, WSMOUSEIO_SCALIBCOORDS and
WSMOUSEIO_GCALIBCOORDS.
2000-01-08 02:57:22 +00:00
tsubai
a1da0497d2
Remove two panic conditions.
...
XXX untested.
1999-12-28 13:49:20 +00:00
drochner
0893832078
update for changed struct wsdisplay_accessops:show_screen signature.
...
no functional changes
1999-12-06 19:25:56 +00:00
tsubai
eb1c1bdb92
Make media-bay CD detachable.
1999-10-04 22:58:10 +00:00
thorpej
e6c88a7686
Update for SCSIPI changes.
1999-09-30 22:59:52 +00:00
tsubai
0724f6dd3b
Recognize PCMCIA eject button. (Tested on only PowerBook 2400.)
1999-09-05 05:30:30 +00:00
tsubai
775199a39f
Make configurable without ams.
1999-08-16 06:28:09 +00:00
tsubai
07bc0e694d
media-bay CD support.
1999-07-21 19:20:04 +00:00
tsubai
4aec314394
Add PowerBook LCD brightness and speaker volume button device.
...
Only brightness works for now.
1999-07-12 17:48:26 +00:00
tsubai
b7fc95a188
Add read/set LCD brightness and eject PCMCIA card function.
1999-07-12 15:54:55 +00:00
tsubai
a192e5bd20
Enable soft poweroff on PowerBook.
1999-07-11 16:59:31 +00:00
tsubai
a2ded1ab73
NVRAM read/write functions.
1999-06-22 13:12:11 +00:00
tsubai
2068c8b6e4
Use RTC on PB.
1999-06-22 11:29:11 +00:00
tsubai
9ac9208434
More initialization by calling Open Firmware.
1999-06-20 05:34:59 +00:00
tsubai
a8d7da0d21
Add "trackpad" definition.
1999-06-17 06:59:05 +00:00
tsubai
c28bad1d51
Define PowerBook G3 Japanese keyboard.
1999-06-16 08:48:37 +00:00
tsubai
a2e8151f8e
Define symbolic name of PMU commands.
1999-06-16 07:43:58 +00:00
tsubai
4df925b8b0
* Don't use DMA interrupt.
...
* Stop DMA explicitly in finish routine.
1999-06-14 08:53:06 +00:00
thorpej
f98d358a1f
Rework layer 2 protocol input routines. Instead of calling e.g. ether_input()
...
directly, call the function pointer (*if_input)(ifp, m). The input routine
expects the packet header to be at the head of the packet, and will adjust
as necessary. Privatize the layer 2 input and output routines, allowing
*_ifattach() to set them up as appropriate.
1999-05-18 23:52:51 +00:00
thorpej
ac9eee8693
Take all of the OpenFirmware "stdin" grovelling out of the ADB keyboard
...
driver, as the smarts for this all live somewhere else now.
1999-05-06 19:20:59 +00:00
tsubai
8dbaa0169e
Find "mac-io" and "/pci/mac-io".
1999-05-01 10:36:08 +00:00
tsubai
5fff3dafe9
Use "compatible" property to match.
1999-05-01 10:23:42 +00:00
tsubai
85cece609b
Remove unused files.
1999-03-28 13:16:45 +00:00
mrg
d2397ac5f7
completely remove Mach VM support. all that is left is the all the
...
header files as UVM still uses (most of) these.
1999-03-24 05:50:49 +00:00
wrstuden
3c8e65b670
Oops. macppc doesn't use PCLK as a baud rate source.
1999-03-23 18:07:19 +00:00
perry
d446fb449c
exterminate ovbcopy. patches provided by Erik Bertelsen, pr-7145
1999-03-12 22:42:30 +00:00
tsubai
c8117990ae
Use 6x11 font if screen size is smaller than 1024x768.
...
(Open Firmware ROM has 6x11 font.)
1999-02-19 14:02:33 +00:00
tsubai
da71ba4292
First step of MESH SCSI support.
...
XXX no disconnect/reselect.
XXX sync transfer is very unstable.
1999-02-19 13:06:03 +00:00
tsubai
60307f0ef1
Sync with mac68k.
1999-02-17 14:56:56 +00:00
mycroft
2a304686e6
Minor cleanup.
...
Make the initializer for BAUDLO depend on PCLK directly; it was incorrect on
some ports where PCLK is not 4.9152MHz.
XXX Is the default value actually used?
1999-02-11 15:28:03 +00:00
tsubai
d1276ebc65
Make this compile. (and sync with dev/ic completely)
1999-02-06 20:04:31 +00:00
mycroft
be1af660c0
Don't set DCD_IE in the frontends. KGDB doesn't even use DCD, and the tty
...
frontends get it from zsparam() anyway.
1999-02-03 20:25:05 +00:00
mycroft
54f0a0ae81
Clone changes from the version in dev/ic. (These should be merged!)
...
Note: NOT tested on this port yet.
1999-02-03 20:19:08 +00:00
tsubai
68c9ce2c96
Don't use BAT register. (not needed now.)
1999-02-02 16:48:17 +00:00
tsubai
438b781c46
Match "ata0".
1999-01-22 10:44:38 +00:00
tsubai
321f772d99
Invert Y axis (like ums, pms, ...).
1999-01-18 12:36:36 +00:00
tsubai
12d2afa11a
Use KS_KEYCODE macro.
1999-01-13 08:13:41 +00:00
tsubai
90a73bba2c
Always use polling when poweroff/restart.
1999-01-12 10:38:00 +00:00
drochner
35eeb3f1cd
remove dummy "load_font" entries
1999-01-11 21:54:22 +00:00
tsubai
8190b5f43f
Add sanity checks in akbd_cnattach().
1999-01-10 10:39:13 +00:00
tsubai
13529d1878
bmac ethernet driver. (tested on iMac. only 10Base-T works.)
1999-01-01 01:27:52 +00:00
tsubai
8a5e34f28a
Fix a bug of last change.
1998-12-29 05:17:27 +00:00
tsubai
e7e9a2e0e1
Use "interrupt" property if "AAPL,interrupt" is not found.
1998-12-28 00:38:18 +00:00
tsubai
86a0b96c10
Search "interrupts" property if "AAPL,interrupts" is not found.
1998-12-22 19:46:28 +00:00
tsubai
89e0cc0a86
Display frame buffer type when attached.
1998-12-22 19:38:35 +00:00
tsubai
ef27ffc3de
Add ata/atapi disk support.
1998-12-10 20:10:03 +00:00
tsubai
ea6bba6b90
Fix a typo.
1998-12-07 17:17:14 +00:00
tsubai
f917584d54
Add more delay in adb_reinit().
1998-11-24 08:26:50 +00:00
thorpej
5f0577babc
Adapt to the new scsipi_adapter interface.
1998-11-19 21:43:00 +00:00
mrg
db3051d720
fix problems in many d_mmap routines:
...
- returned EOPNOTSUPP rather than -1.
- no check for negative offset.
many of these fix potential security problems in these drivers.
XXX XXX XXX
the d_mmap cdev routine should be changed to have a prototype like:
paddr_t (*d_mmap) __P((dev_t, off_t, int));
by someone!
1998-11-19 15:38:20 +00:00
tsubai
099f099133
Don't send mouse events to wsmouse layer if wsmouse isn't configured.
1998-11-18 09:11:34 +00:00
tsubai
7c939afccf
RTC support for pmu (read only).
1998-11-15 19:41:33 +00:00
tsubai
1bf603b543
Sync to mac68k.
1998-11-05 11:46:07 +00:00
tsubai
8634976fb2
Move conversion of PRAM-time to UNIX-time to clock.c (like mac68k).
1998-11-04 15:06:13 +00:00
tsubai
0b3665db48
Add "Paddington" ID.
1998-11-03 12:15:57 +00:00
tsubai
330d14c254
Oops, forgot to add them.
1998-10-20 14:59:16 +00:00
tsubai
6f402eb495
Add via-pmu support (only PowerBook 2400c/180 is tested).
1998-10-20 14:56:30 +00:00
tsubai
07e2c44982
Make compilable without aed.
1998-10-18 09:52:16 +00:00
tsubai
541bc2d3d7
Add wsmouse support.
1998-10-18 09:31:40 +00:00
tsubai
3b892dd579
/chaos/control support. (tested 640x480 mode only)
1998-10-15 14:48:47 +00:00
tsubai
635d4ae57a
Fix typo.
1998-10-14 13:21:10 +00:00
tsubai
c539169765
wskbd support.
1998-10-14 12:56:19 +00:00
tsubai
b6e7cc68c6
akbd: wskbd support.
...
ofb: OpenFirmware generic framebuffer.
1998-10-14 12:15:10 +00:00
tsubai
7d9356dcca
Fix cut-and-paste miss...
1998-10-13 13:15:29 +00:00
tsubai
7756c05cc4
Split ADB driver to aed (ADB event device), akbd (ADB keyboard),
...
and ams (ADB mouse). adb is a bus now. (from Colin Wood)
1998-10-13 11:21:20 +00:00
thorpej
29d472f53d
Garbage-collect the open_target_lu and close_target_lu entry points from
...
struct scsipi_adapter; they were not used.
Add a scsipi_ioctl entry point to struct scsipi_adapter. This will be
used to issue ioctl commands to the host adapters.
Inspired by PR #6090 , from Matt Jacob.
1998-10-10 00:28:28 +00:00
wrstuden
eefa9491d1
Turn on support for 115,200 and 230,400 baud. Should work, but might
...
generate lots of interupts (one per char or so) if we don't have
DMA set up.
1998-09-09 20:58:06 +00:00
pk
29bae173fa
Relinquish my copyright claims on this file.
1998-09-05 15:29:35 +00:00
tsubai
99c8212d10
Change void mcintr() to int mcintr().
1998-09-03 14:06:06 +00:00
cgd
d58173741d
kill the last remnants of __BROKEN_INDIRECT_CONFIG. (only the pica port
...
used it, and it's non-working and apparently slated for replacement.)
1998-08-31 22:28:04 +00:00
tsubai
1c3e72cd0e
Back out previous change.
1998-08-26 11:44:06 +00:00
tsubai
d4d7416198
vm_offset_t --> [pv]addr_t.
1998-08-21 16:13:28 +00:00
tsubai
573f3aee5c
Enable 115200 and (untested)230400 bps.
1998-08-16 11:24:36 +00:00
mycroft
129cbf95ee
Minor edit.
1998-08-15 05:16:41 +00:00
mycroft
b2827b9d36
Assign copyright to TNF.
1998-08-15 04:16:55 +00:00
thorpej
7698349700
Ah, we use a _different_ ofcons; rename it macofcons to avoid the
...
name collision.
1998-07-28 23:43:33 +00:00
tsubai
dc16918e07
Add support for G3 Mac.
1998-07-13 19:37:28 +00:00
tsubai
14fd96b811
Get framebuffer address from Openfirmware.
1998-07-13 19:31:53 +00:00
tsubai
209036f339
Revert to previous version.
...
Use ROM font.
1998-07-13 19:14:43 +00:00
jonathan
011f2bda08
defopt NS, NSIP.
1998-07-05 06:49:00 +00:00
jonathan
fe484937cf
defopt LLC
1998-07-05 03:14:41 +00:00
jonathan
8db0fcdbf7
defopt CCITT.
1998-07-05 02:12:22 +00:00
jonathan
3751946b97
defopt INET, NETATALK.
1998-07-05 00:51:04 +00:00
jonathan
466e784ee1
defopt DDB.
1998-07-04 22:18:13 +00:00
tsubai
21f84e9128
Add nvram device support.
1998-07-03 11:50:32 +00:00
tsubai
a8ce5c2403
Console support.
1998-07-02 18:58:32 +00:00
tsubai
f1b1f5211a
Display/Keyboard console support (by calling Openfirmware)
1998-07-02 18:46:28 +00:00