Fixed pessimized (short) i/o port types.

This commit is contained in:
Bruce Evans 1996-10-08 21:08:18 +00:00
parent 6cbc213f79
commit e8e87818d1
4 changed files with 7 additions and 9 deletions

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)isa.c 7.2 (Berkeley) 5/13/91
* $Id: isa.c,v 1.72 1996/09/06 23:07:45 phk Exp $
* $Id: isa.c,v 1.73 1996/09/10 23:30:50 bde Exp $
*/
/*
@ -516,8 +516,7 @@ static u_int8_t dma_inuse = 0; /* User for acquire/release */
#define VALID_DMA_MASK (7)
/* high byte of address is stored in this port for i-th dma channel */
static short dmapageport[8] =
{ 0x87, 0x83, 0x81, 0x82, 0x8f, 0x8b, 0x89, 0x8a };
static int dmapageport[8] = { 0x87, 0x83, 0x81, 0x82, 0x8f, 0x8b, 0x89, 0x8a };
/*
* Setup a DMA channel's bounce buffer.

View File

@ -12,7 +12,7 @@
* on the understanding that TFS is not responsible for the correct
* functioning of this software in any circumstances.
*
* $Id: aha1542.c,v 1.61 1996/09/06 23:07:06 phk Exp $
* $Id: aha1542.c,v 1.62 1996/09/10 23:30:48 bde Exp $
*/
/*
@ -297,7 +297,7 @@ int aha_debug = 1;
#endif /*AHADEBUG */
static struct aha_data {
short aha_base; /* base port for each board */
int aha_base; /* base port for each board */
/*
* xor this with a physaddr to get a kv addr and visa versa
* for items in THIS STRUCT only.

View File

@ -1,4 +1,4 @@
static short gpib_port=0x2c0;
static int gpib_port=0x2c0;
#define IEEE gpib_port
/*NAT4882 Registers*/

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)isa.c 7.2 (Berkeley) 5/13/91
* $Id: isa.c,v 1.72 1996/09/06 23:07:45 phk Exp $
* $Id: isa.c,v 1.73 1996/09/10 23:30:50 bde Exp $
*/
/*
@ -516,8 +516,7 @@ static u_int8_t dma_inuse = 0; /* User for acquire/release */
#define VALID_DMA_MASK (7)
/* high byte of address is stored in this port for i-th dma channel */
static short dmapageport[8] =
{ 0x87, 0x83, 0x81, 0x82, 0x8f, 0x8b, 0x89, 0x8a };
static int dmapageport[8] = { 0x87, 0x83, 0x81, 0x82, 0x8f, 0x8b, 0x89, 0x8a };
/*
* Setup a DMA channel's bounce buffer.