Usenet comp.os.linux.announce (1993-2013)
 help / color / mirror / Atom feed
* enable pci 2 mem posting
@ 1994-07-29 23:05 Denis Giffeler
  0 siblings, 0 replies; only message in thread
From: Denis Giffeler @ 1994-07-29 23:05 UTC (permalink / raw)


A few days ago I posted a patch for the linux.S file to enable the pci
to memory posting option. On Asus SP3G Boards it is not possible to
enable this via BIOS. This small program enables pci2mem without
patching the kernel.  Run program with UID 0.

             Denis.
----------------------------------------------------------------------------
#include <asm/io.h>
#include <errno.h>

/* Enables PCI to memory posting on Boards with NCR 810 SCSI Chip. */
/* Tested on ASUS SP3G Board. Workes fine.                         */
/* giffeler@athene.informatik.uni-bonn.de                          */

void main () {
  if (iopl (3)) perror ("iopl");  
  else {
    outb (0x0cf8, inb (0x0cf8) | 0x80);
    outb (0xc054, inb (0xc054) | 1);
    outb (0x0cf8, inb (0x0cf8) & 0x7f);
  }
}
----------------------------------------------------------------------------

--
Send submissions for comp.os.linux.announce to: linux-announce@tc.cornell.edu
PLEASE remember Keywords: and a short description of the software.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1994-07-29 23:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-07-29 23:05 enable pci 2 mem posting Denis Giffeler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox