Commit Graph

133 Commits

Author SHA1 Message Date
Bryce Denney
f229ae1afd - a right shift by 12 was accidently written as one greater than instead of two 2001-08-14 04:53:32 +00:00
Bryce Denney
b483593107 - add case for IDE command 0xe7 so that it doesn't panic when installing
win2000
2001-08-13 15:58:35 +00:00
Bryce Denney
1540695f17 - for big endian machines I reversed the bit fields in interrupt_reason.
This was pointed out by Nicholai Benalal.
2001-08-13 15:48:13 +00:00
Bryce Denney
6b6acdc376 - add scsi_commands.h for Amiga CDROM support, from Nicholai Benalal
<nicholai@chello.se>
2001-08-13 15:35:54 +00:00
Bryce Denney
aa671e6e51 - add CDROM support for Amiga, from Nicholai Benalal <nicholai@chello.se> 2001-08-13 15:33:59 +00:00
Todd T.Fries
53ae809632 cleanup debug stuff 2001-07-10 17:20:36 +00:00
Gregory Alexander
c9d18333c0 More preprocessor controls. 2001-07-05 23:55:22 +00:00
Gregory Alexander
6052b0054b Put the new PIT back in. The whole thing should be ifdef'd
out when not in use.
2001-07-02 01:21:59 +00:00
Gregory Alexander
fc0ee2dc3e Added compiler define to use the new PIT.
Also added a hack to keep the OpenBSD timer problem from filling the log.

The new PIT seems to work, but until some
enhancements are made to the way the timers
and devices.cc work, it'll be slower than
the old one.
2001-07-01 20:49:46 +00:00
Bryce Denney
3f8f6c9a0c - added new macros BX_INSTR_INP2 and BX_INSTR_OUTP2, which report the
values that are being written and read from I/O accesses.
2001-06-28 19:48:04 +00:00
Todd T.Fries
a54ef5ad9b add strerror to bpf open error 2001-06-28 14:00:37 +00:00
Bryce Denney
13ff8b1870 - use #undef to avoid name conflicts with OUT. OUT is the name of
part of a pit structure, but is also defined in the system headers
  on some systems.
2001-06-28 01:36:11 +00:00
Gregory Alexander
85b5157a7e Added significant improvements to the new pit. It's about ready for use.
The only big thing it's lacking right now is testing, which is a
little difficult to do, considering the new interface.  Oh, well.
2001-06-27 22:25:24 +00:00
Todd T.Fries
4f1c151520 Move Init $ to ::init() 2001-06-27 20:27:49 +00:00
Todd T.Fries
f833500359 some reformat, various misc stuff with Init, introduce $ 2001-06-27 20:11:10 +00:00
Todd T.Fries
a06b031dcf setprefix -> put 2001-06-27 19:16:01 +00:00
instinc
6af3f5bd9f - Added irq IRR removal when specific EOI is received 2001-06-26 21:55:25 +00:00
Bryce Denney
c718b074db - Another patch from splite@purdue.edu.
The original code for determining the capacity of a disk only worked for
  ATAPI drives, leaving us poor SCSI users in the cold.  The code uses the
  standard Linux CD-ROM driver routines, so it should work on any supported
  drive.  It's basically just a copy of Keith Jones FreeBSD code.
2001-06-26 08:12:21 +00:00
Bryce Denney
ac6f23c3cf - apply ne2k patch from splite@purdue.edu to fix a few problems that
appeared in the guest OS.  Full description:
  > After much grovelling through the 8390 docs, I think this is the
  > correct answer to the odd-length packet problem I was having with
  > the ne2k driver under Linux.
  >
  > According to the datasheet, the 8390 always accesses its buffer
  > memory in word-size chunks if the WTS bit of the DCR is set.  So
  > it will always send a word to the host bus interface if WTS==1.
  > It's up to the host bus interface to deliver the the number of
  > requested bytes to the host.  So disallowing a byte read when the
  > WTS bit is set is wrong (IMO) as the bus interface may allow it,
  > as the NE2000 appears to.
  >
  > The patch to ne2k.h bumps the receive buffer memory size to 32K.
  > This fixes the "out-of-bounds chipmem read" errors I was getting.
  >
  > Can someone with an NE2K datasheet verify these changes?  They
  > jibe with the Linux ne.c driver, anyway.
2001-06-26 07:49:25 +00:00
Bryce Denney
75c87e2113 - apply patch from splite@purdue.edu that add an ethernet packet mover
for Linux!!!  I tested this using host OS kernel 2.2.14, and was able
  to use telnet, ftp, irc, lynx, etc.  Because it is a packet filter
  solution, you aren't able to talk to the host machine, only to other
  machines on the network.  The patch itself is in
  patches/patch.ethlinux-splite.
2001-06-26 07:46:42 +00:00
Bryce Denney
06fb629d85 - backed out patch.kbd-dieter. The patch appears to work on all XFree86
X servers that I've seen, however on other X servers it makes all
  key mappings into absolute junk.  We need to continue to work on this
  patch to support all X servers and all key maps.
2001-06-25 22:57:27 +00:00
Bryce Denney
5de15c7352 - added little headers to the .h files 2001-06-25 14:02:29 +00:00
Bryce Denney
f6a09136e7 - add left backslash keycode, also suggested by Dieter Mittelmaier 2001-06-25 13:39:10 +00:00
Bryce Denney
547cb604b9 - exclude type.h for cygwin, though it is available in VC++. 2001-06-25 12:56:54 +00:00
Bryce Denney
9577b4277c - only define PACKED if it's not already defined, since in Cygwin it's
already defined.
2001-06-25 12:52:37 +00:00
Bryce Denney
fc63504252 - commit Psyon's CDROM patch that allows Win95/98/ME to read raw
CDs using ASPI interface.
2001-06-25 02:18:16 +00:00
Gregory Alexander
a2db8e751c Only respond to ARPs requesting the external IP address. 2001-06-24 00:48:38 +00:00
Gregory Alexander
d99cdfe521 Add patch to report receive status in all NE2K DMA writes
instead of always writing it to zero, which can't be right.
2001-06-24 00:47:17 +00:00
Bryce Denney
cbb040f68c - added BX_DEBUGs 2001-06-23 17:59:14 +00:00
Bryce Denney
6fcc0b3aa1 - bx_options.cdromd.inserted is now an enum, with values BX_INSERTED or
BX_EJECTED
- added a BX_DEBUG line or two
2001-06-23 15:28:49 +00:00
Bryce Denney
eb08d39347 - just removed one \n 2001-06-23 03:23:41 +00:00
Bryce Denney
6c439676f1 - removed pit82c54.o and pit_wrap.o from default makefile.in temporarily
because they do not compile on VC++.
2001-06-22 13:18:27 +00:00
Bryce Denney
b7cb1a5dde - applied patch from bochs@sigint.cs.purdue.edu. The comments are:
> The Linux 2.4.5 CD-ROM driver sends a READ_DISC_INFO command which caused
  > an "unrecognized ATAPI command" panic.  Looks like READ_DISC_INFO is only
  > recognized by CD-R and CD-RW drives, so I ignore it for now.  (I don't
  > know if ASC_INV_FIELD_IN_CMD_PACKET is the right code, but it shouldn't
  > matter to Linux anyway.)
2001-06-22 04:08:15 +00:00
Gregory Alexander
7f03177ed0 Started adding support for IP packets. 2001-06-21 23:12:47 +00:00
Bryce Denney
1bcdee2301 - add options to the string parameter class that allow it to deal with
raw hex bytes, for the MAC address.
2001-06-21 19:27:05 +00:00
Bryce Denney
8ca273ce73 - converted ne2k and sb16 to new style parameters and control panel,
except for MAC address of the ne2k, which is next.
2001-06-21 18:34:50 +00:00
Bryce Denney
a6d74fd4b0 - oops Odev should have been Opath 2001-06-21 15:06:14 +00:00
Bryce Denney
80a7541fed - used grep to search for more instances of new bx_options problems that
I have introduced, and fixed a lot.
2001-06-21 14:56:43 +00:00
Bryce Denney
e9d8fc0738 - fixed some bx_options name changes which were hiding inside
#ifdef LOWLEVEL_CDROM ... #endif
2001-06-21 14:40:01 +00:00
Gregory Alexander
2ee630f3fc Changed the format for eth_arpback to be more versatile for use with
UDP and TCP.
2001-06-21 01:45:17 +00:00
Bryce Denney
ec0fbf18bc - convert nearly all bx_options to parameter form. All options that have
been converted into parameters temporarily have the letter "O" appended
  to their name.  I don't want to keep it this way, but it has helped
  in the conversion process because the compiler refuses to compile the
  old uses of the name.  Before I started using the "O" trick, there were
  many bugs like this:   if (bx_options.diskc.present) {...}
  This was legal with the new parameters, but it was testing whether the
  parameter structure had been created, instead of testing the value of
  the present parameter.  Renaming present to Opresent turns this into
  a compile error, which points out the incorrect use of the param.
- the "--disable-control-panel" no longer works, I'm afraid.  I can no
  longer support this and continue progress.
2001-06-20 14:01:39 +00:00
Gregory Alexander
ce339e0b78 Only respond to ARP packets. 2001-06-20 01:00:04 +00:00
Todd T.Fries
12985edb26 setprefix now uses a variable length name as a string for an argument 2001-06-19 21:36:09 +00:00
Todd T.Fries
7f18b0c181 serial enable step 1 2001-06-19 17:52:46 +00:00
Bryce Denney
4df55e3713 - merge TX and RX log into a single ne2k.raw and ne2k.txt. 2001-06-19 16:57:55 +00:00
Bryce Denney
8a61ebd6c3 - now rxlog and rxlog_txt are actually opened 2001-06-19 16:39:18 +00:00
Bryce Denney
427506cb87 - oops, renamed charbuf to rxbuf 2001-06-19 16:36:09 +00:00
Bryce Denney
c552310880 - oops, class_ptr renamed to this 2001-06-19 16:34:09 +00:00
Bryce Denney
01d7de33ad - add logging code to eth_fbsd, similar to eth_null.cc 2001-06-19 16:09:13 +00:00
Bryce Denney
c8b87d1f50 - fixed bug that caused mouse events to get through to bochs, even
when mouse was disabled.  It didn't warp the cursor so it was mostly
  just strange, not dangerous.
2001-06-19 04:42:35 +00:00