Commit Graph

215 Commits

Author SHA1 Message Date
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
tsubai 57d093fa36 Powerdown support. 1998-06-26 14:18:08 +00:00
tsubai 37a089fe32 Add support for "ohare" I/O controller. 1998-06-21 15:06:19 +00:00
tsubai 9b047c7c15 Move shutdownhook_establish before the attachment of common parts. 1998-06-19 14:11:32 +00:00
tsubai 6bf20f4c29 Add support for UVM and MACHINE_NEW_NONCONTIG. 1998-06-05 12:22:43 +00:00
tsubai a8b4eda678 Remove unnecessary cache flush. 1998-05-30 06:16:06 +00:00
tsubai 2be6df07c6 Initial import of macppc port. 1998-05-15 10:15:45 +00:00