Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Alvin Starr <alvin@iplink.net>
Subject: Re: isapnptools
Date: Thu, 31 Jul 1997 13:45:41 -0400 (EDT)	[thread overview]
Message-ID: <a3c175fe4c14bbb87b8380ea60c1174c.axp-list@archive.invalid> (raw)
In-Reply-To: <19970731090734.18139@maroon.scd.ucar.edu>

On Thu, 31 Jul 1997, Craig Ruff wrote:

> 
> I'd like to see your patches for isapnp!  Thanks.
> -- 
Here are the patches as applied to 1.11

Alvin Starr                   ||   voice: (416)493-3325
Interlink Connectivity        ||   fax:   (416)493-7974
alvin@iplink.net              ||
Index: isapnptools/Makefile
diff -c isapnptools/Makefile:1.1.1.2 isapnptools/Makefile:1.4
*** isapnptools/Makefile:1.1.1.2	Thu Jul 31 11:50:37 1997
--- isapnptools/Makefile	Thu Jul 31 13:39:13 1997
***************
*** 36,42 ****
  #                the code will ignore these defines if it detects
  #                glibc 2.0 or later.
  #
! PNPFLAGS += -DREALTIME -DNEEDSETSCHEDULER -DNEEDNANOSLEEP
  #
  # Set this if cross-compiling for DOS using djgpp
  #
--- 36,42 ----
  #                the code will ignore these defines if it detects
  #                glibc 2.0 or later.
  #
! PNPFLAGS += -DYY_SKIP_YYWRAP #-DREALTIME -DNEEDSETSCHEDULER -DNEEDNANOSLEEP
  #
  # Set this if cross-compiling for DOS using djgpp
  #
Index: isapnptools/isapnp.8
diff -c isapnptools/isapnp.8:1.1.1.1 isapnptools/isapnp.8:1.3
*** isapnptools/isapnp.8:1.1.1.1	Thu Jul 31 11:45:10 1997
--- isapnptools/isapnp.8	Thu Jul 31 12:08:09 1997
***************
*** 2,8 ****
  .\" This program is distributed according to the Gnu General Public License.
  .\" See the file COPYING in the isapnptools source distribution.
  .\"
! .\" $Id: isapnp.8,v 1.1.1.1 1997/07/31 15:45:10 alvin Exp $
  .\"
  .TH ISAPNP 8 "14 Jan 1997" "isapnptools"
  .SH NAME
--- 2,8 ----
  .\" This program is distributed according to the Gnu General Public License.
  .\" See the file COPYING in the isapnptools source distribution.
  .\"
! .\" $Id: isapnp.8,v 1.3 1997/07/31 16:08:09 alvin Exp $
  .\"
  .TH ISAPNP 8 "14 Jan 1997" "isapnptools"
  .SH NAME
Index: isapnptools/isapnp.conf.5
diff -c isapnptools/isapnp.conf.5:1.1.1.2 isapnptools/isapnp.conf.5:1.3
*** isapnptools/isapnp.conf.5:1.1.1.2	Thu Jul 31 11:50:43 1997
--- isapnptools/isapnp.conf.5	Thu Jul 31 12:08:11 1997
***************
*** 2,8 ****
  .\" This program is distributed according to the Gnu General Public License.
  .\" See the file COPYING in the isapnptools source distribution.
  .\"
! .\" $Id: isapnp.conf.5,v 1.1.1.2 1997/07/31 15:50:43 alvin Exp $
  .\"
  .TH ISAPNP.CONF 5 "10 Jun 1997" "isapnptools"
  .SH NAME
--- 2,8 ----
  .\" This program is distributed according to the Gnu General Public License.
  .\" See the file COPYING in the isapnptools source distribution.
  .\"
! .\" $Id: isapnp.conf.5,v 1.3 1997/07/31 16:08:11 alvin Exp $
  .\"
  .TH ISAPNP.CONF 5 "10 Jun 1997" "isapnptools"
  .SH NAME
Index: isapnptools/isapnp.y
diff -c isapnptools/isapnp.y:1.1.1.2 isapnptools/isapnp.y:1.4
*** isapnptools/isapnp.y:1.1.1.2	Thu Jul 31 11:50:40 1997
--- isapnptools/isapnp.y	Thu Jul 31 13:39:14 1997
***************
*** 24,30 ****
  
  #include "pnp.h"
  
! static char rcsid[] = "$Id: isapnp.y,v 1.1.1.2 1997/07/31 15:50:40 alvin Exp $";
  
  #ifdef REALTIME
  /*
--- 24,30 ----
  
  #include "pnp.h"
  
! static char rcsid[] = "$Id: isapnp.y,v 1.4 1997/07/31 17:39:14 alvin Exp $";
  
  #ifdef REALTIME
  /*
***************
*** 197,202 ****
--- 197,206 ----
  void yy_flex_free(void *ptr){(void)free(ptr);}
  #endif /* _OS2_ */
  
+ #ifdef __alpha__
+ unsigned _ioperm(unsigned port, daddr_t a, unsigned b);
+ #endif
+ 
  #ifdef __DJGPP__
  unsigned ioperm(unsigned port, unsigned a, unsigned b){return(0);}
  unsigned iopl(unsigned port){return(0);}
***************
*** 1096,1107 ****
--- 1100,1115 ----
  		exit(1);
  	}
  	/* Have to get unrestricted access to io ports, as WRITE_DATA port > 0x3ff */
+ #ifndef __alpha__
  	if(iopl(3) < 0)
  	{	
  		perror("Unable to get io permission for WRITE_DATA");
  		ioperm(ADDRESS_ADDR, 1, 0);
  		exit(1);
  	}
+ #else
+ 	_ioperm (0, 0x10000, 1);
+ #endif
  	retval = 0;
  	yyin = fopen(argv[1], "r");
  	yylex();
Index: isapnptools/pnpdump.8
diff -c isapnptools/pnpdump.8:1.1.1.2 isapnptools/pnpdump.8:1.3
*** isapnptools/pnpdump.8:1.1.1.2	Thu Jul 31 11:50:44 1997
--- isapnptools/pnpdump.8	Thu Jul 31 12:08:13 1997
***************
*** 2,8 ****
  .\" This program is distributed according to the Gnu General Public License.
  .\" See the file COPYING in the isapnptools source distribution.
  .\"
! .\" $Id: pnpdump.8,v 1.1.1.2 1997/07/31 15:50:44 alvin Exp $
  .\"
  .TH PNPDUMP 8 "14 Jul 1997" "isapnptools"
  .SH NAME
--- 2,8 ----
  .\" This program is distributed according to the Gnu General Public License.
  .\" See the file COPYING in the isapnptools source distribution.
  .\"
! .\" $Id: pnpdump.8,v 1.3 1997/07/31 16:08:13 alvin Exp $
  .\"
  .TH PNPDUMP 8 "14 Jul 1997" "isapnptools"
  .SH NAME
Index: isapnptools/pnpdump.c
diff -c isapnptools/pnpdump.c:1.1.1.2 isapnptools/pnpdump.c:1.4
*** isapnptools/pnpdump.c:1.1.1.2	Thu Jul 31 11:50:41 1997
--- isapnptools/pnpdump.c	Thu Jul 31 13:39:15 1997
***************
*** 29,35 ****
  #define TMP_LEN 16
  #define LARGE_LEN 65536
  
! static char rcsid[] = "$Id: pnpdump.c,v 1.1.1.2 1997/07/31 15:50:41 alvin Exp $";
  
  #ifdef REALTIME
  /*
--- 29,35 ----
  #define TMP_LEN 16
  #define LARGE_LEN 65536
  
! static char rcsid[] = "$Id: pnpdump.c,v 1.4 1997/07/31 17:39:15 alvin Exp $";
  
  #ifdef REALTIME
  /*
***************
*** 108,113 ****
--- 108,117 ----
  unsigned usleep(unsigned wait){return(_sleep2((wait+990)/1000));}
  #endif /* _OS2_ */
  
+ #ifdef __alpha__
+ unsigned _ioperm(unsigned port, daddr_t a, unsigned b);
+ #endif 
+ 
  #ifdef __DJGPP__
  unsigned ioperm(unsigned port, unsigned a, unsigned b){return(0);}
  unsigned iopl(unsigned port){return(0);}
***************
*** 187,197 ****
--- 191,206 ----
       * Have to get unrestricted access to io ports, as WRITE_DATA port >
       * 0x3ff
       */
+ #ifndef __alpha__
      if(iopl(3) < 0)
      {
  	perror("Unable to get io permission for WRITE_DATA");
  	exit(1);
      }
+ #else
+ 	_ioperm (0, 0x10000, 1);
+ #endif
+ 
  #ifdef REALTIME
      setroundrobin();
  #endif /* REALTIME */

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

       reply	other threads:[~1997-07-31 17:45 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <19970731090734.18139@maroon.scd.ucar.edu>
1997-07-31 17:45 ` Alvin Starr [this message]
1997-08-01 21:55 isapnptools dupke
  -- strict thread matches above, loose matches on Subject: below --
1997-08-01 13:14 isapnptools Stephen J. Gaudet
     [not found] <199707311545.LAA18338@mailrelay.tiac.net>
1997-07-31 21:55 ` isapnptools Andrew Kieschnick
1997-07-31 15:45 isapnptools Stephen J. Gaudet
     [not found] <Pine.OSF.3.91.970731104953.25258A-100000@caesar.iplink.net>
1997-07-31 15:07 ` isapnptools Craig Ruff
     [not found] <x7u3hc6ukt.fsf@agilis.tripnet.se>
1997-07-31 14:53 ` isapnptools Alvin Starr
1997-07-30 22:31 isapnptools marbud
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