Commit Graph

291 Commits

Author SHA1 Message Date
leo
2f371152d6 Init the preset_row_scan register. This fixes a sometimes partly scrolled-up
console.
2000-01-12 08:53:01 +00:00
leo
a93741b5c7 Determine the default floppy type on the TT/Falcon by reading the config
switches. (Thanks to Michael Schwingen for the missing bits of information!).
2000-01-06 12:14:33 +00:00
leo
2b1c23376c Fix y2k buglet in /dev/rtc reported by Julian Coleman. Note that the input
and output format of /dev/rtc is now changed.
2000-01-06 12:03:31 +00:00
leo
8c73075593 Limit the io-region mapped by this driver to the part actually used.
Otherwise, it conflicts with the wd-driver.
1999-10-22 08:50:59 +00:00
leo
2c1b82026b implement DIOCSDINFO. 1999-10-21 15:03:28 +00:00
thorpej
e6c88a7686 Update for SCSIPI changes. 1999-09-30 22:59:52 +00:00
leo
54f2532106 Change the way that bit's are cleared in the InterruptPending register of
the 68901. Do this now by _assigning_ ~<bit_to_clear> instead of the
previously used 'andb ~<bit_to_clear>'. The latter caused a rwm-cycle that
caused a race condition to happen when an interrupt arrived between the
Read and Modify-Write.
Anyway, this solved my hanging keyboard problem.
1999-08-06 08:27:30 +00:00
leo
38029cf240 If the floppy has no label, fake one. 1999-05-04 14:29:44 +00:00
pk
8d2456a432 Move advertisement text into a comment of its own. 1999-04-06 19:31:37 +00:00
pk
0e39bfc32c remove duplicate line in copyright. 1999-04-06 19:28:41 +00:00
pk
5a47d424ae Fix garbled word in copyright statement. 1999-04-06 19:27:48 +00:00
leo
f621acf82b Nuke the pieces of code obsoleted by .../pci/pci_tseng.c 1999-03-26 19:20:42 +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
leo
10cf345ed4 Fix type lossage reported by Julian Coleman. 1999-02-19 21:04:06 +00:00
leo
2426418d47 More work on Tseng support. Now both my et6000 _and_ the et6100 work. I just
whish that programming MDRAM latency values came out of the BlackMagic(tm)
domain :-(
1999-02-19 21:03:00 +00:00
leo
89347a3159 Add <machine/bswap.h> in the list of include-files. 1999-02-19 20:57:03 +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
thomas
6c040077b9 Install kbdreg.h. The Xserver needs it. 1998-12-20 23:17:48 +00:00
thomas
75c4b3bf70 Changed grf mmap that it is closer to XFree. VGA memory on et4000/et6000
is now at offset 0xa0000.
1998-12-20 14:32:34 +00:00
mjacob
74bc9f26d5 Update HBAs to incorporate the new max_lun property. 1998-12-05 19:43:33 +00:00
bouyer
47ab212504 Rename pio_mode, etc ... to PIO_cap, etc ... for consistency with the
ata_drive_datas struct. Suggested by Soren S. Jorvan.
1998-12-03 18:24:30 +00:00
drochner
e1244719fd oops - forget update for wdc_channels definition change 1998-11-22 14:36:38 +00:00
leo
b981000a00 If the disklabel on the floppy says that there are more tracks and sectors
than the hardware is capable off, believe the hardware...
1998-11-20 12:58:13 +00:00
leo
6827fd2ff0 Checkpoint my work on et6000 support. 1998-11-20 12:56:09 +00:00
thorpej
5f0577babc Adapt to the new scsipi_adapter interface. 1998-11-19 21:43:00 +00:00
bouyer
19fddaeeb5 Merge bouyer-ide 1998-10-12 16:09:10 +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
leo
d833f66c0c Copyright stuff. 1998-10-07 07:22:32 +00:00
leo
3e8b7d3139 Only return COMPLETE when polling. 1998-10-06 09:32:44 +00:00
leo
05ebc10205 Disable SCSI interrupts while polling for the transfer to finish. This
fixes spurious panics while booting my Hades. This bug could also occur
on a TT030.
1998-10-06 09:29:44 +00:00
leo
8a20859c2e Some DEBUG fixups 1998-10-06 09:22:01 +00:00
leo
a3b886d834 Reorganize installation if include files. Nuke some from atari/include as
they make no sense out of the kernel add some from atari/dev (ioctl's).
1998-09-02 10:59:14 +00:00
mycroft
6dc903202f Assign my copyrights to TNF. 1998-08-15 10:10:47 +00:00
mycroft
6d3d8a1350 Make copyright notices with my name consistent. 1998-08-15 03:02:31 +00:00
jonathan
466e784ee1 defopt DDB. 1998-07-04 22:18:13 +00:00
leo
560995dea3 Forgotten with last UVM check-in. 1998-05-12 21:09:23 +00:00
thomas
5575e380dd Let et4000 work with other RAMDAC than STG1703 1998-05-11 20:43:43 +00:00
leo
9f8316940b Use NOWAIT when malloc()-ing a buffer for switching screens. It might be
running from an interrupt handler.
1998-04-23 09:22:15 +00:00
leo
85966e661a Use MI wdc-driver. 1998-04-10 10:37:04 +00:00
leo
bc9ebf17a7 Major overhaul of the atari bus_space implementation. 1998-04-10 08:19:53 +00:00
leo
e32073cbb1 Sync with latest tty changes. 1998-03-25 09:46:09 +00:00
leo
25811c51ea Declare 'fd_cd'. 1998-02-24 13:02:54 +00:00
leo
8d5fa0c992 Fix a bug in the colormap handling. (Thomas Gerner) 1998-01-21 09:07:46 +00:00
leo
dc8f785187 Make this compile again after the latest config changes. 1998-01-15 13:06:27 +00:00
thorpej
2d73f5ea18 Update for changes to config. 1998-01-12 18:03:58 +00:00
thorpej
e3834cc351 Implement DIOCGDEFLABEL. 1997-10-08 23:37:50 +00:00
bouyer
6f3bab1f59 Merge scsipi branch in the mainline. This add support for ATAPI devices
(currently only CD-ROM drives on i386). The sys/dev/scsipi system provides 2
busses to which devices can attach (scsibus and atapibus). This needed to
change some include files and structure names in the low level scsi drivers.
1997-08-27 11:22:52 +00:00
leo
c9f11609e3 According to Andre Lange, the Hades has the DTR/RTS lines exchanged on
the 68901 UART-port due to a PCB error. Take care of this.
1997-08-27 06:59:19 +00:00
leo
d0301b58ee Don't enable the dma-interrupt while polling for dma to end. This sometimes
caused a system panic on the Hades while probing the SCSI devices.
1997-08-27 06:16:49 +00:00
leo
83c69491b2 Add second md device. 1997-07-30 15:45:33 +00:00
leo
baa16e912c Rename lpt to lp on some places to avoid botches between files.isa and
files.atari.
1997-07-30 15:43:23 +00:00
leo
b61a48cef7 Include 'locators.h' 1997-07-30 15:32:37 +00:00
jtk
ca1bba150a use locator defines in "locators.h" to index cf_loc[] 1997-07-17 03:16:39 +00:00
jtk
b4777471db use locator defines in "locators.h" to index cf_loc[] 1997-07-17 01:52:54 +00:00
leo
de78b4c0e9 Garbage collect bell-ioctl's. 1997-07-15 06:48:05 +00:00
leo
1c21c4994d Make sure the card is probed once. 1997-07-09 14:38:02 +00:00
leo
d4c5e4e6fe Add code to set pitch and duration of the keyboard bell. (Thomas Gerner). 1997-06-29 20:30:49 +00:00
leo
b61541d6c2 Be consistent with more pedantic bus.h. 1997-06-25 12:15:54 +00:00
thorpej
afe2bc9b9e In wdsize():
- If the partition is already open, skip the open/close step.  (Sync with
  other disk drivers).
- foosize()'s return value is in DEV_BSIZE units; adjust the size obtained
  from the disklabel accordingly.
1997-06-24 00:41:29 +00:00
veego
b04f321b06 s/atari_round_page/m68k_round_page/ 1997-06-10 18:45:05 +00:00
leo
f42858310e Use m68k cacheops 1997-06-04 14:33:49 +00:00
leo
c803f7baa9 Add serial driver for 68901 UART (modem1 port). 1997-05-25 12:41:27 +00:00
leo
c05eddf7f5 Fix the 'shifting screens' bug on the Falcon. This solution is not perfect
since it gives a bit of flicker while switching frame buffers. From
Thomas Gerner.
1997-05-19 21:07:05 +00:00
leo
7c2c0c846c - Provide the reasonable size that can/may be mmap-ed. This might differ
from the current frame buffer size.
- The et-driver now allows for a 16Kb io-region (was 8Kb) that can be
  mapped. The XFree server uses this.
1997-04-25 19:25:38 +00:00
leo
d5733f126e Allow formatting of 360Kb floppies. 1997-04-25 19:18:04 +00:00
leo
9c9b9aefc9 Make Hades DMA transfers work in polling mode with all interrupts
disabled. This makes dumps to scsi work.
1997-04-06 12:42:44 +00:00
leo
ff152e48d5 The atari-TT really has no IDE-interface. 1997-04-02 20:33:10 +00:00
leo
061e737731 Add wd-driver. The driver is basically the driver present in the arm32
port (Thanks Mark!) with a few atari specific things and the bad block
handling disabled.
1997-04-01 08:17:44 +00:00
leo
67c47d4b56 Remove a hardcoded interrupt handler. Now uses intr_establish() for the
SCSI-drq handler on the Hades.
1997-03-30 21:08:19 +00:00
leo
103e8967c4 Add a space to the attach message. 1997-03-30 21:04:13 +00:00
leo
e4a48696a6 Add member to bitmap struct that gives the size of mappable memory. 1997-03-13 12:37:08 +00:00
leo
7e288e08c3 Use vme_mask, not sys_mask to enable the SCC interrupt. 1997-03-10 14:41:43 +00:00
leo
60bde8d1ca Fix a kernel-dump that occurred when accessing a grf-device that was configured
in the config file but not found by the autoconfig code.
1997-02-26 12:28:40 +00:00
leo
5e2ca8918d Use generic date conversion module. 1997-02-26 12:26:36 +00:00
leo
a6b3b4a841 Add option to sleep until ST_DMA becomes available. 1997-01-27 07:54:40 +00:00
leo
43795f8930 Don't set the PA_SER2 bit by default, this has the nasty side effect that
it disables the IDE hardware on the Falcon (Thanks Markus ;-) ). A function
is provided to toggle the bit.
1997-01-21 20:41:07 +00:00
leo
81fd2d7dc6 This should have been part of the keyboard-modifier changes. 1997-01-12 22:15:24 +00:00
leo
3e345f741d Use the mask register to block the interrups, not the enable register. This
enables the interrupt to be shared (with IDE for example ;-) ).
1997-01-12 15:46:37 +00:00
leo
4b8a9a883c Fix return value of the interrupt function. 1997-01-12 15:44:45 +00:00
leo
7a0c8fa119 Handle keyboard modifiers *before* handing the keycodes to either the
console driver or the DDB keyboard functions. This prevents annoyances
with out of sync modifier stati.
1997-01-10 21:24:25 +00:00
leo
2fa61d9691 Allow the control registers to be mapped too. 1997-01-10 21:00:36 +00:00
leo
1f4324fd52 Record physical addresses in the bitmap structure instead of VA's. The
latter breaks the mmap-functions.
1997-01-10 20:59:27 +00:00
leo
d1538cb3c0 Don't try to init the keyboard interrupts in cngetc(). This caused the
keyboard to hang when booting directly into the debugger.
1997-01-08 11:28:03 +00:00
leo
0713c0ee88 Fix a rather nasty thinko that made the keyboard useless on the Falcon.
Thanks to Markus Kilbinger for finding it.
1997-01-04 23:30:21 +00:00
leo
54608785fb The ST-DMA driver now uses intr_establish. 1997-01-01 21:14:47 +00:00
leo
493e4aaebb The Hades floppy driver now uses intr_establish(). Also the interrupt
accounting is fixed (ie. counted as the right interrupt).
1997-01-01 21:12:56 +00:00
pk
c4a0dfb011 omission in last commit: ramdisk.h => md.h 1996-12-28 23:50:44 +00:00
pk
a8b4babc16 rename: ramdisk => md 1996-12-28 23:37:26 +00:00
leo
223682435b Oops, this one was missed in the BROKEN_INDIRECT_CONFIG cruisade. 1996-12-28 23:26:36 +00:00
leo
c4b08fe059 Add intr_establish/disestablish functions. Currently only the lpt-driver
is converted to use them...
1996-12-26 23:25:01 +00:00
leo
c6e901c459 Get rid of BROKEN_INDIRECT_CONFIG 1996-12-20 16:20:57 +00:00
leo
291ced55a4 Get rid of BROKEN_INDIRECT_CONFIG 1996-12-20 12:49:35 +00:00
leo
421158437b Tweak the clockframe structure a bit so we are able to save a few cycles
at interrupt time. (From Gordon Ross).
1996-12-18 12:35:19 +00:00
leo
9f8a5d9694 Move up the initialisations for the delay routine in the initialisation
process. It's now also available to the different device probes.
1996-12-16 22:03:23 +00:00
leo
de3b8c8e4b Implement an rtc-device. Credits for the idea goes to Wolfgang Solfrank.
Because there is no way yet to tell init(1) to execute commands before
single user-mode is entered, the inittodr() function is still partly
functional. It retrieves the value of the RTC and sets the time as if
the RTC was running at UTC. The resettodr() function is a No-Op. The
RTC can only be changed by a write to /dev/rtc.
The TIMEZONE and DST options are no longer needed and removed from the
config files.
1996-12-16 21:24:00 +00:00
leo
ae092ee765 Merge the formatting code from the i386-port. 1996-12-14 13:47:12 +00:00
thorpej
d502e68402 Fill in sc_link.max_target 1996-12-10 21:27:16 +00:00
leo
f9ace39811 Plug some spl-holes in the lp-driver. Also be more strict in protecting
the register access to the psg-chip. The combination of those bugs
caused the printer to print garbage sometimes.
1996-11-17 13:47:09 +00:00
leo
d3ef248436 Shift screen a bit to the left. 1996-11-17 13:39:40 +00:00
leo
643abfa146 Make splbio really splbio. All holes now seem to be plugged. At least
on the Hades & TT030.
1996-11-17 13:38:03 +00:00