269N/Aindex 4cae16b..718e6e9 100644
269N/A * Copyright (c) 2005 ASPEED Technology Inc.
269N/A+ * Copyright (c) 2005, 2016, Oracle
and/or its affiliates. All rights reserved
269N/A * Permission to use, copy, modify, distribute, and sell this software and its
269N/A * documentation for any purpose is hereby granted without fee, provided that
269N/A@@ -305,78 +306,6 @@ typedef struct _ASTRec {
269N/A #define ASTPTR(p) ((ASTRecPtr)((p)->driverPrivate))
269N/A-#ifndef VIS_GETPCICONFIG
269N/A- * These definitions will be removed when they are included in the
269N/A-#define VIS_GETVIDEOMODENAME (VIOC | 12)
269N/A-#define VIS_STOREVIDEOMODENAME (VIOC | 13)
269N/A-#define VIS_MAX_VMODE_LEN 48
269N/A-typedef struct vis_video_mode {
269N/A- char mode_name[VIS_MAX_VMODE_LEN];
269N/A-#define VIS_GETPCICONFIG (VIOC | 14)
269N/A-typedef struct vis_pci_cfg {
269N/A- uint8_t CacheLineSize;
269N/A- uint32_t ROMBaseAddress;
269N/A- uint8_t CapabilitiesPtr;
284N/A- uint8_t Reserved_1[3];
284N/A- uint8_t InterruptLine;
269N/A- uint8_t MaximumLatency;
-#define VIS_SETIOREG (VIOC | 17)
-#define VIS_GETIOREG (VIOC | 18)
-#define ASTIOC ('Y' << 8)
-#define AST_GET_INDEX (ASTIOC | 14)
-#define AST_SET_INDEX (ASTIOC | 15)
-typedef struct vis_io_reg {
extern struct pci_device *ASTGetPciInfo(ASTRecPtr);
extern ScrnInfoPtr ASTAllocScreen(DriverPtr, GDevPtr);
extern pointer ASTMapVidMem(ScrnInfoPtr, unsigned int, CARD32,
index ded26e3..0b81ea5 100644
* Copyright (c) 2005 ASPEED Technology Inc.
+ * Copyright (c) 2005, 2016, Oracle
and/or its affiliates. All rights reserved
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
-#define SET_IO_REG 0x1000
-#define GET_IO_REG 0x1001
#define AR_PORT_WRITE 0x40
#define MISC_PORT_WRITE 0x42
#define VGA_ENABLE_PORT 0x43
- ioctl(pAST->fd, AST_GET_INDEX, &io_reg); \
+ ioctl(pAST->fd, VIS_GETINDEX, &io_reg); \
- ioctl(pAST->fd, AST_SET_INDEX, &io_reg); \
+ ioctl(pAST->fd, VIS_SETINDEX, &io_reg); \
#define GetIndexRegMask(off, index, and, val) do { \
- ioctl(pAST->fd, AST_GET_INDEX, &io_reg); \
+ ioctl(pAST->fd, VIS_GETINDEX, &io_reg); \
- ioctl(pAST->fd, AST_GET_INDEX, &io_reg); \
+ ioctl(pAST->fd, VIS_GETINDEX, &io_reg); \
- ioctl(pAST->fd, AST_SET_INDEX, &io_reg); \
+ ioctl(pAST->fd, VIS_SETINDEX, &io_reg); \