Usenet comp.os.linux.announce (1993-2013)
 help / color / mirror / Atom feed
From: Denis Giffeler <giffeler@next-pc.informatik.uni-bonn.de>
Subject: REPOST: enable pci 2 mem posting
Date: Thu, 4 Aug 1994 12:32:54 GMT	[thread overview]
Message-ID: <1994Aug4.123254.25769@cs.cornell.edu> (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.


                 reply	other threads:[~1994-08-04 12:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

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