Commit Graph

252 Commits

Author SHA1 Message Date
Volker Ruppert
d6a1ec5fd9 - removed unnecessary untrigger_irq() call 2001-12-31 08:36:48 +00:00
Volker Ruppert
d5b13d3131 - second set of changes to bochs floppy support.
* floppy command 'format track' implemented
  * read and write operations with MT=0 are working now
    (function 'increment_sector()' updated)
  * result code of floppy command 'get status' fixed
  * flag FS_MS_DIO is not set while the 'configure' floppy command is pending
2001-12-28 16:38:13 +00:00
Volker Ruppert
a8e9c246c7 - variables for 'format track' and MT=0 support added 2001-12-28 16:36:45 +00:00
Volker Ruppert
328bd4fb84 - fixed the behaviour of some floppy commands (Windows 95 driver works now)
* diskette controller data register returns last result if no new data
    is available
  * reset will be activated when the reset bit is changed to normal operation
  * reset sets the error bits in status register 0
  * write access to port 0x3f4 will cause a BX_ERROR now
  * unsupported and invalid floppy commands are setting the error status bit
    'invalid command' - BX_PANIC not necessary
  * flag FS_MS_DIO is not set while a floppy command is pending
  * floppy command 'specify': cause a BX_ERROR when non-DMA mode is selected
  * floppy command 'sense interrupt status' returns an error is no interrupt
    is pending
  * floppy command 'read ID' sets the 'busy' flag and returns no data if the
    motor is not on
  * removed SIMX86 section (not defined in bochs)
  * define variable 'sTemp' for win32 only
2001-12-27 09:30:31 +00:00
Volker Ruppert
84f0593409 - added variable 'pending_irq' (needed for 'sense interrupt status' 2001-12-27 09:28:53 +00:00
Volker Ruppert
87e705a553 - implementation of transfer type 0 (verify) - dma write without writing to memory 2001-12-26 14:56:15 +00:00
Volker Ruppert
3492a93d8f - write wave and midi data in binary mode
- adlib registers enabled (OPL emulation still not complete)
- fixed a warning in function opl_data()
- write current time into sb16 logfile
2001-12-22 13:30:10 +00:00
Christophe Bothamy
0f6a92235a - updated keyboard with mf1, mf2 and mf3 scancodes set handling
- Added scancode translation table and BX_KEY to scancode table
- completed BX_KEYS list
2001-12-22 00:00:33 +00:00
Bryce Denney
cbd68598a3 - apply patch.memleaks-tominac from Darko Tominac <darko.tominac@zg.tel.hr>
which fixes some potential memory leaks
2001-12-21 19:33:18 +00:00
Volker Ruppert
f004e340e8 - asic_write: dma write size and remote bytes fixed (thanks to Mike Lerwill)
- read_handler: fixed a warning
2001-12-21 11:56:52 +00:00
Volker Ruppert
ecabb60da8 - chipmem read/write limit and dma write size fixed - Windows 95 driver works now 2001-12-20 19:44:16 +00:00
Volker Ruppert
384d4f1cce - added Windows(tm) keys to the German keymap 2001-12-19 19:15:12 +00:00
Volker Ruppert
c658faf211 - direction flag added to control port, debug messages improved 2001-12-18 21:58:59 +00:00
Volker Ruppert
33f4ee6e35 - DMA-2 controller and dma16 read/write functions added 2001-12-18 13:12:45 +00:00
Volker Ruppert
5427df8b36 - fixed the vga memory read/write functions in text mode
- text mode cursor feature added
2001-12-13 18:34:30 +00:00
Christophe Bothamy
d7482737a9 . Added a keyboard_type option in the conf file
. Modified answer of keyboard controler to a keyboard-identify command
  depending on keyboard_type
. Added the keyboard_type option in bochsrc man page
2001-12-12 10:38:39 +00:00
Bryce Denney
45b303a2c0 - another small beos change from Bernd Korz. 2001-12-10 18:37:39 +00:00
Bryce Denney
dbf4e8d33e - do not panic on "OUTB set and command 0xaa encountered" 2001-12-08 14:02:57 +00:00
Bryce Denney
f82c3f9b86 - add a little bit of beos support 2001-12-08 13:07:07 +00:00
Bryce Denney
d2bf9cb219 - add support for raw CDROM under MacOS X, from
Scott Brumbaugh <scottcb@gte.net>
2001-12-07 21:56:15 +00:00
Bryce Denney
5ef3f7ca45 - add BeOS specific code from Bernd Korz 2001-12-07 18:58:24 +00:00
Volker Ruppert
aa297204b0 - setting led status works even if the keyboard is disabled 2001-12-05 20:36:03 +00:00
Bryce Denney
6a03773831 - I've had several reports of how to reproduce the 'slave OCW3 not implemented'
condition, so I've removed it now.
2001-11-27 18:15:39 +00:00
Volker Ruppert
2102016517 - MF-II identification and some missing keys added 2001-11-26 09:55:30 +00:00
Bryce Denney
e5a992a796 - master PIC ignores commands 0xc0-0xc7. This change just makes the slave
PIC ignore these same commands.  It does not implement the commands.
2001-11-19 14:41:03 +00:00
Volker Ruppert
6333bcd2a4 - changed some panics to errors, register behaviour and messages fixed 2001-11-17 18:10:54 +00:00
Volker Ruppert
820ca4b2a6 - cygwin compilation error fixed 2001-11-16 23:10:59 +00:00
Volker Ruppert
3f35c13958 Printer response works again if the config option is "enabled=0" or fopen() fails. 2001-11-15 23:35:26 +00:00
Bryce Denney
fea759a204 - apply patch.pci from Volker Ruppert. See
[ #481546 ] pci patch (Volker Ruppert) for any followups.
2001-11-14 01:39:22 +00:00
Bryce Denney
ed45dddd21 - Volker Ruppert's fix to keyboard typematic rate 2001-11-14 01:28:53 +00:00
Bryce Denney
aa13968341 - more improvements from Volker.
- fopen with "wb" so that win32 doesn't translate CRLF
    - add initmode setting
    - fix bug, fill in behavior in write handler
    - now it works for him with DOS, Linux, and Windows guests
2001-11-14 00:29:20 +00:00
Bryce Denney
3934cd370c - change a few "char"s to "const char", from Roland Mainz compile patch 2001-11-12 03:34:45 +00:00
Bryce Denney
94ba0f4ca4 - remove some "#if BX_DEBUG" lines. What are these anyway? They've
probably been treated as ifdef instead, but a sun compiler doesn't like
  them.  Anyway, they were being used around a check for irq_num > 15.
  This bounds check seems ok to do all the time, so I just removed the
  #if BX_DEBUG lines and corresponding #endifs.
2001-11-12 03:29:18 +00:00
Bryce Denney
c52fbaa3a7 - allow configuration of the parallel port in .bochsrc and the config
interface menus.  Parallel port #1 is implemented, and I left stubs for
  parallel port #2 in case we want to ever add it.  If the parallel port
  is enabled, the init method of parallel.cc does an fopen() on the output
  file.  If disabled, or if the fopen fails, the file handler remains
  NULL and no characters are printed.  There is no attempt to enable/disable
  the operation of the parallel port, only the output to a file.
2001-11-12 02:35:09 +00:00
Bryce Denney
1d94019ce0 - add comments saying who wrote most of this file
- add fflush after every character written to output file
2001-11-12 01:45:21 +00:00
Bryce Denney
a2efc4c5de - commit patch.parport from Volker Ruppert. I tested it by running
"copy FILE prn" in a freedos image.
2001-11-12 01:33:01 +00:00
Bryce Denney
0d632755fe - in read_toc, make all platforms use the same code if using_file==1. 2001-11-11 14:41:53 +00:00
Bryce Denney
88893a868d - Committed patch.pic-slave-special-mask to fix bug
[ #468340 ] pic:slave: OCW3 not implemented

  The service_master_pic() method supported special mask mode but
  service_slave_pic() did not.  I added the code to service_slave_pic().  I
  have no clear way to test that this is actually working right.  If I can put
  a gdb breakpoint in the pic.cc code and then step through and watch it work,
  I'll be more confident.
2001-11-11 00:45:42 +00:00
Todd T.Fries
25db9d70b3 this is from ece lca <ecelca@yahoo.com>:
I compiled Bochs on Linux and installed a linux
in it, but when I ping a machine on my LAN, I get
packet loss. Sometimes as much as 70% is lost.
So I read ne2k.cc, Linux 8390 driver and 8390 chip
specification. I find that 8390 command register START
bit is misused in ne2k.cc. According to the chip
specification, even if START=0, the chip does not stop
working.
2001-11-06 20:30:09 +00:00
Todd T.Fries
68309b59b6 fixes from Frode Vatvedt Fjeld. Thanks! 2001-11-06 17:14:34 +00:00
Gregory Alexander
f952b17c62 Trying to improve interactive performance.
Changed frequency on timer in pit_wrap.
Changed time quantum on slowdown_timer.

 Modified Files:
 	pit_wrap.cc slowdown_timer.cc
2001-10-11 13:01:27 +00:00
Bryce Denney
c99f9aa8ef - use @CPP_SUFFIX@ substitution to get the dependencies right for nmake too 2001-10-07 20:19:04 +00:00
Bryce Denney
c90e548019 - avoid symbol conflict on DUPLICATE by renaming it to BX_DUPLICATE 2001-10-07 14:43:59 +00:00
Bryce Denney
2283627565 - correct log message that said read_toc was returning 0. No. It returns 1. 2001-10-07 03:37:02 +00:00
Bryce Denney
5012a2ba85 - the windows implementation has been able to distinguish between raw
device and disk file for a while.  Even though its version of
  read_toc is minimal, in fact I would say broken, it lets people use
  an ISO disk file as a cdrom.
- in this revision, I wrote the "unix equivalent" of the win32 code, including
  the broken version of read_toc.  Now win32 and unix should act very similar
  when they encounter an ISO disk image.
- one important improvement is in read_toc, I have added "*length=1" for both
  win32 and unix, since otherwise the function returns random junk for the
  length of the TOC.  I also tried "*length=0" and that created the "lost
  interrupt" behavior that psyon has been trying to get rid of...I changed it
  back to *length=1 of course and left a note to him in that bug report.
2001-10-07 03:34:54 +00:00
Bryce Denney
585d11de57 - print strerror in some log message 2001-10-07 03:28:45 +00:00
Bryce Denney
8a21b1a9d6 - apply patches/patch.add-makefile-deps. I have added dependencies
which were generated with gcc -MM to the end of each Makefile.in
  so that make understands which files depend on which.  Basically,
  everything depends on bochs.h, which depends on everything, which
  is not ideal.
2001-10-07 00:33:21 +00:00
Bryce Denney
7279914d1b - don't blindly reject odd length atapi commands. There are cases when
it's really ok according to ATA-4.
2001-10-06 23:55:19 +00:00
Bryce Denney
7c82612bc9 - add strerror(errno) to open failed message
- minor tweaks
2001-10-06 17:32:58 +00:00
Bryce Denney
19b3618409 - add strerror(errno) output to a few log messages
- treat fatal network errors as panics.  Any error whose behavior is to
  close the fd and give up--it now does a BX_PANIC to say what is happening.
2001-10-06 17:31:44 +00:00