Commit Graph

602 Commits

Author SHA1 Message Date
is e6f57d38e4 Fix thinko in fix for fix for cf_unit abuse. 2000-04-27 21:11:07 +00:00
mhitch 437d090c28 Long term bug finally reared its head: size of device softc was specified
as sizeof(struct device) when amiga switched to new config, and recent
additions of callout structures and a long missing struct device to the
soft structure resulted in kernel panics when attempting to open the builtin
serial port.  The callout structure initialization was clearing the serial
port softc data!  Fixed by using sizeof(struct par_softc).
2000-04-23 19:55:51 +00:00
is f0b2e9f184 Make this work again after the last changes...
remember, folks, potential Amiga console devices run autoconfiguration
_twice_.
2000-04-14 21:56:22 +00:00
aymeric 8e8e291c78 Prevent serial port from hanging when used as both console and terminal. 2000-04-07 19:47:18 +00:00
frueauf 440814a0b5 Add "struct device sc_dev;" to struct par_softc.
Reviewed by Ignatios Souvatzis.
2000-03-26 10:15:32 +00:00
is 128258c1a2 Initial IOBlix support. Only lpt and com; lpt untested; com assumes 24 MHz
clock (needs autoprobe of clock speed).
2000-03-23 22:44:42 +00:00
thorpej b667a5a357 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:30:07 +00:00
kleink 8bc084e1de Kill more broken cf_unit bogons. 2000-03-16 16:37:20 +00:00
kleink 1634305526 Kill a couple of unnecessary cf_unit (ab)uses. 2000-03-15 20:40:00 +00:00
soren 95054da1a1 Fix doubled 'the's in comments. 2000-03-13 23:52:25 +00:00
aymeric 77292e79c6 fix a couple of things to handle interrupts more cleanly on the A1200 2000-02-21 18:27:49 +00:00
aymeric 728c720d75 acknowledge the interrupt to gayle before entering wdc_intr.
This fixes the lost interrupts problem.
fix some glitches on the A1200 too.
2000-02-19 17:16:20 +00:00
is 9bf09631c6 Only output message on really special DEBUG kernels. 2000-02-11 19:09:56 +00:00
aymeric dc0ce1249b fix interrupt handling
I still get lost interrupts on the A1200, but the problem is certainly
elsewhere (not in wdc_amiga).
2000-02-10 15:51:59 +00:00
aymeric a10113c83a fix a couple of things to (hopefully) make this work on the A1200 2000-02-09 22:27:20 +00:00
thorpej fe551f0e64 Fix a bug in disksort_*() which caused non-optimal ordering when multiple
active partitions were on a single spindle.  Add a b_rawblkno member to
struct buf which contains the non-partition-relative block number to sort
by.
2000-02-07 20:16:47 +00:00
mhitch d9b42dd1fc At long last, the MI wdc glue for the Amiga. Tested on my A4000, but not
on an A1200 yet.  Configuration of wdc/atapi in GENERIC is currently
commented out to prevent the suprise of an IDE drive changing from sd0
to wd0 (and the first real SCSI drive changing from sd1/sd1 to sd0).
2000-02-05 18:46:28 +00:00
aymeric d7e70f7068 sync with new bus.h 2000-01-23 21:06:12 +00:00
aymeric 9b5252590b add PCMCIA generic support 2000-01-23 20:57:27 +00:00
thorpej 52242fdf9f Update for sys/buf.h/disksort_*() changes. 2000-01-21 23:28:59 +00:00
thorpej 71b89434fa Remove one line of junk. 2000-01-18 19:33:31 +00:00
is e80be24250 Yet another cpu.h. 2000-01-16 21:19:44 +00:00
aymeric 626fbe9b6d make this work again (include machine/cpu.h) 2000-01-15 17:09:47 +00:00
aymeric b4406c3d63 make this compile again 2000-01-15 13:50:13 +00:00
is fc0b743e44 Fix comment. No code change. 2000-01-06 10:53:34 +00:00
is 2e3d1cc048 The Ricoh chip has a seperate leapyear counter.
We must write this when we write the year register, keeping them in sync.
XXX the chosen algorithm only works for 1901 <= year <= 2099.
2000-01-03 21:52:14 +00:00
is d14968078a Write part of the y2k fix.
This is not strictly necessary, as
- at least for the Ricoh chip in the A3000 and A4000, as those chips' Y10
  registers happily continue to count up from 0xA if manually incremented
  past 0x9.
- the Amiga ROMs and "setclock" commands seem to interpret 0xA 0x? like
  200?, etc.

However,
- the Amiga setclock writes the modulo 10 value into the chips
- the chip docs of both chips, including the Y2K information of their
  manufacturers, only refer to the range 0-9
- the chips increment from 9 to 0

So we better conform to this, to avoid unpleasant surprises.
2000-01-03 20:30:51 +00:00
is 5614cd4fce *sigh*
Y2000-patch for A2000, A3000 and A4000 battery backed clock modules,
mostly by Adam Ciarcinski.
2000-01-02 18:29:22 +00:00
is 715da299de assign the pointer 1999-12-31 08:38:13 +00:00
is 99943b2c6b Rewrite of the Amiga bus_space machinery to prepare for the support of
the generic IDE driver and the PCMCIA slots.
1999-12-30 20:56:44 +00:00
mhitch 2553fa2352 Add multicast capability to the A4066 (es) driver; now it will do IPv6. 1999-12-10 05:44:58 +00:00
mhitch 0e63301bc7 Check for valid device when starting a request with interrupts; device
probes are now done with interrupts, and would hang when probing for
non-existent device.
1999-12-10 05:39:20 +00:00
ragge 0513268399 CL* discarding. 1999-12-04 21:13:19 +00:00
is 14d940c179 Jens, not Joerg 1999-11-25 22:11:03 +00:00
is 5a05d40012 Address range scaling is hidden by the bus_space functions. Correct the
definitions in case we ever do bus_space accounting on Amiga.
1999-11-25 21:58:57 +00:00
is 366a09427a Add a few boards we know about.
This should really be table-driven and optional.
1999-11-25 21:57:45 +00:00
is 57ac5a3ea7 Another RTL8019 board: X-serve by Individual Computers Jens Schoenfeld. 1999-11-25 21:53:01 +00:00
is 13c27090e8 Don't call the sc->sbic_dmago() function if the data length is zero.
This avoids a zero pointer dereference, which fixes PR 8571.
Make sbic_dmago() report selection timeouts to the upper layer.
This makes sbic really work again with 1.4L.
1999-11-01 22:22:33 +00:00
is 21d10126ed Make this compile with -DDEBUG again. 1999-10-04 20:28:01 +00:00
thorpej e6c88a7686 Update for SCSIPI changes. 1999-09-30 22:59:52 +00:00
is 744246fa0b vm_offset_t -> vaddr_t/paddr_t 1999-09-25 21:47:02 +00:00
is 6f84613972 replace inline asm by macro calls, that expand to the original inline asm
or to C replacements depending on the USE_C_BFOPS option.
The C replacement only works for our 8 bit wide fonts.
1999-09-20 23:17:13 +00:00
is 5c9f73a53d Oops. I forgot to add cachops here earlier. 1999-09-07 20:24:56 +00:00
is 33014f7bb0 Switch to cacheops. This closes PR 1960. 1999-09-06 21:50:47 +00:00
is f0e0b02d7c Add a quick and dirty FBIOGVIDEO implementation. This is hardware independent,
by saving the last written FIOSVIDEO/GRFIOCBLANK value into a shadow variable
in the grf_softc and returning this value on FBIOGVIDEO.
The presence of this ioctl is needed by screenblank(8) nowadays.
Original problem reported by Lars Hecking on the port-amiga mailing list.
1999-08-16 19:55:27 +00:00
thorpej eb20bbc780 Change the semantics of splsoftclock() to be like other spl*() functions,
that is priority is rasied.  Add a new spllowersoftclock() to provide the
atomic drop-to-softclock semantics that the old splsoftclock() provided,
and update calls accordingly.

This fixes a problem with using the "rnd" pseudo-device from within
interrupt context to extract random data (e.g. from within the softnet
interrupt) where doing so would incorrectly unblock interrupts (causing
all sorts of lossage).

XXX 4 platforms do not have priority-raising capability: newsmips, sparc,
XXX sparc64, and VAX.  This platforms still have this bug until their
XXX spl*() functions are fixed.
1999-08-05 18:08:08 +00:00
is a183cb63ae Fix horizontal timings for console mode (this helps, at least,
Lars Hecking).
1999-06-29 19:51:28 +00:00
is f4351f7b96 Don't even try to output to, scroll or clear the device if we are in graphics
mode. On this chip, we need to access some registers to set the text plane,
which messes up the graphics setup.
This should fix the grf3 problems reported by several people.
Michael Hitch and Joerg Lehners analyzed the problem and provided the fix.
1999-06-27 21:17:17 +00:00
is 7a132d78b7 Align adresses better 1999-06-22 21:12:00 +00:00
is b7ee76f1c4 Check for an unterminated bus; if yes: complain and don't try to use this
bus. Without this, cbiiisc used to hang if nothing was connected.
Reported by Matthias Scheler. A similar method to avoid this was suggested
by Ralph Schmidt.
1999-06-07 21:30:57 +00:00