Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
sisusb.h File Reference
#include <linux/mutex.h>
#include <linux/console.h>
#include <linux/vt_kern.h>
#include "sisusb_struct.h"

Go to the source code of this file.

Data Structures

struct  sisusb_urb_context
 
struct  sisusb_usb_data
 
struct  sisusb_packet
 
struct  sisusb_info
 
struct  sisusb_command
 

Macros

#define SISUSB_VERSION   0
 
#define SISUSB_REVISION   0
 
#define SISUSB_PATCHLEVEL   8
 
#define SISUSB_MINOR   133 /* official */
 
#define SISUSB_IBUF_SIZE   0x01000
 
#define SISUSB_OBUF_SIZE   0x10000 /* fixed */
 
#define NUMOBUFS   8 /* max number of output buffers/output URBs */
 
#define SISUSB_CORRECT_ENDIANNESS_PACKET(p)
 
#define to_sisusb_dev(d)   container_of(d, struct sisusb_usb_data, kref)
 
#define SU_URB_BUSY   1
 
#define SU_URB_ALLOC   2
 
#define SISUSB_EP_GFX_IN   0x0e /* gfx std packet out(0e)/in(8e) */
 
#define SISUSB_EP_GFX_OUT   0x0e
 
#define SISUSB_EP_GFX_BULK_OUT   0x01 /* gfx mem bulk out/in */
 
#define SISUSB_EP_GFX_BULK_IN   0x02 /* ? 2 is "OUT" ? */
 
#define SISUSB_EP_GFX_LBULK_OUT   0x03 /* gfx large mem bulk out */
 
#define SISUSB_EP_UNKNOWN_04   0x04 /* ? 4 is "OUT" ? - unused */
 
#define SISUSB_EP_BRIDGE_IN   0x0d /* Net2280 out(0d)/in(8d) */
 
#define SISUSB_EP_BRIDGE_OUT   0x0d
 
#define SISUSB_TYPE_MEM   0
 
#define SISUSB_TYPE_IO   1
 
#define CLEARPACKET(packet)   memset(packet, 0, 10)
 
#define SISUSB_PCI_MEMBASE   0xd0000000
 
#define SISUSB_PCI_MMIOBASE   0xe4000000
 
#define SISUSB_PCI_IOPORTBASE   0x0000d000
 
#define SISUSB_PCI_PSEUDO_MEMBASE   0x10000000
 
#define SISUSB_PCI_PSEUDO_MMIOBASE   0x20000000
 
#define SISUSB_PCI_PSEUDO_IOPORTBASE   0x0000d000
 
#define SISUSB_PCI_PSEUDO_PCIBASE   0x00010000
 
#define SISUSB_PCI_MMIOSIZE   (128*1024)
 
#define SISUSB_PCI_PCONFSIZE   0x5c
 
#define AROFFSET   0x40
 
#define ARROFFSET   0x41
 
#define GROFFSET   0x4e
 
#define SROFFSET   0x44
 
#define CROFFSET   0x54
 
#define MISCROFFSET   0x4c
 
#define MISCWOFFSET   0x42
 
#define INPUTSTATOFFSET   0x5A
 
#define PART1OFFSET   0x04
 
#define PART2OFFSET   0x10
 
#define PART3OFFSET   0x12
 
#define PART4OFFSET   0x14
 
#define PART5OFFSET   0x16
 
#define CAPTUREOFFSET   0x00
 
#define VIDEOOFFSET   0x02
 
#define COLREGOFFSET   0x48
 
#define PELMASKOFFSET   0x46
 
#define VGAENABLE   0x43
 
#define SISAR   SISUSB_PCI_IOPORTBASE + AROFFSET
 
#define SISARR   SISUSB_PCI_IOPORTBASE + ARROFFSET
 
#define SISGR   SISUSB_PCI_IOPORTBASE + GROFFSET
 
#define SISSR   SISUSB_PCI_IOPORTBASE + SROFFSET
 
#define SISCR   SISUSB_PCI_IOPORTBASE + CROFFSET
 
#define SISMISCR   SISUSB_PCI_IOPORTBASE + MISCROFFSET
 
#define SISMISCW   SISUSB_PCI_IOPORTBASE + MISCWOFFSET
 
#define SISINPSTAT   SISUSB_PCI_IOPORTBASE + INPUTSTATOFFSET
 
#define SISPART1   SISUSB_PCI_IOPORTBASE + PART1OFFSET
 
#define SISPART2   SISUSB_PCI_IOPORTBASE + PART2OFFSET
 
#define SISPART3   SISUSB_PCI_IOPORTBASE + PART3OFFSET
 
#define SISPART4   SISUSB_PCI_IOPORTBASE + PART4OFFSET
 
#define SISPART5   SISUSB_PCI_IOPORTBASE + PART5OFFSET
 
#define SISCAP   SISUSB_PCI_IOPORTBASE + CAPTUREOFFSET
 
#define SISVID   SISUSB_PCI_IOPORTBASE + VIDEOOFFSET
 
#define SISCOLIDXR   SISUSB_PCI_IOPORTBASE + COLREGOFFSET - 1
 
#define SISCOLIDX   SISUSB_PCI_IOPORTBASE + COLREGOFFSET
 
#define SISCOLDATA   SISUSB_PCI_IOPORTBASE + COLREGOFFSET + 1
 
#define SISCOL2IDX   SISPART5
 
#define SISCOL2DATA   SISPART5 + 1
 
#define SISPEL   SISUSB_PCI_IOPORTBASE + PELMASKOFFSET
 
#define SISVGAEN   SISUSB_PCI_IOPORTBASE + VGAENABLE
 
#define SISDACA   SISCOLIDX
 
#define SISDACD   SISCOLDATA
 
#define SISUSB_ID   0x53495355 /* Identify myself with 'SISU' */
 
#define SUCMD_GET   0x01 /* for all: data0 = index, data3 = port */
 
#define SUCMD_SET   0x02 /* data1 = value */
 
#define SUCMD_SETOR   0x03 /* data1 = or */
 
#define SUCMD_SETAND   0x04 /* data1 = and */
 
#define SUCMD_SETANDOR   0x05 /* data1 = and, data2 = or */
 
#define SUCMD_SETMASK   0x06 /* data1 = data, data2 = mask */
 
#define SUCMD_CLRSCR   0x07 /* data0:1:2 = length, data3 = address */
 
#define SUCMD_HANDLETEXTMODE   0x08 /* Reset/destroy text mode */
 
#define SUCMD_SETMODE   0x09 /* Set a display mode (data3 = SiS mode) */
 
#define SUCMD_SETVESAMODE   0x0a /* Set a display mode (data3 = VESA mode) */
 
#define SISUSB_COMMAND   _IOWR(0xF3,0x3D,struct sisusb_command)
 
#define SISUSB_GET_CONFIG_SIZE   _IOR(0xF3,0x3E,__u32)
 
#define SISUSB_GET_CONFIG   _IOR(0xF3,0x3F,struct sisusb_info)
 

Functions

struct sisusb_packet __attribute__ ((__packed__))
 

Variables

unsigned short header
 
u32 address
 
u32 data
 
struct sisusb_info __attribute__
 

Macro Definition Documentation

#define AROFFSET   0x40

Definition at line 213 of file sisusb.h.

#define ARROFFSET   0x41

Definition at line 214 of file sisusb.h.

#define CAPTUREOFFSET   0x00

Definition at line 226 of file sisusb.h.

#define CLEARPACKET (   packet)    memset(packet, 0, 10)

Definition at line 195 of file sisusb.h.

#define COLREGOFFSET   0x48

Definition at line 228 of file sisusb.h.

#define CROFFSET   0x54

Definition at line 217 of file sisusb.h.

#define GROFFSET   0x4e

Definition at line 215 of file sisusb.h.

#define INPUTSTATOFFSET   0x5A

Definition at line 220 of file sisusb.h.

#define MISCROFFSET   0x4c

Definition at line 218 of file sisusb.h.

#define MISCWOFFSET   0x42

Definition at line 219 of file sisusb.h.

#define NUMOBUFS   8 /* max number of output buffers/output URBs */

Definition at line 75 of file sisusb.h.

#define PART1OFFSET   0x04

Definition at line 221 of file sisusb.h.

#define PART2OFFSET   0x10

Definition at line 222 of file sisusb.h.

#define PART3OFFSET   0x12

Definition at line 223 of file sisusb.h.

#define PART4OFFSET   0x14

Definition at line 224 of file sisusb.h.

#define PART5OFFSET   0x16

Definition at line 225 of file sisusb.h.

#define PELMASKOFFSET   0x46

Definition at line 229 of file sisusb.h.

#define SISAR   SISUSB_PCI_IOPORTBASE + AROFFSET

Definition at line 232 of file sisusb.h.

#define SISARR   SISUSB_PCI_IOPORTBASE + ARROFFSET

Definition at line 233 of file sisusb.h.

#define SISCAP   SISUSB_PCI_IOPORTBASE + CAPTUREOFFSET

Definition at line 245 of file sisusb.h.

#define SISCOL2DATA   SISPART5 + 1

Definition at line 251 of file sisusb.h.

#define SISCOL2IDX   SISPART5

Definition at line 250 of file sisusb.h.

#define SISCOLDATA   SISUSB_PCI_IOPORTBASE + COLREGOFFSET + 1

Definition at line 249 of file sisusb.h.

#define SISCOLIDX   SISUSB_PCI_IOPORTBASE + COLREGOFFSET

Definition at line 248 of file sisusb.h.

#define SISCOLIDXR   SISUSB_PCI_IOPORTBASE + COLREGOFFSET - 1

Definition at line 247 of file sisusb.h.

#define SISCR   SISUSB_PCI_IOPORTBASE + CROFFSET

Definition at line 236 of file sisusb.h.

#define SISDACA   SISCOLIDX

Definition at line 254 of file sisusb.h.

#define SISDACD   SISCOLDATA

Definition at line 255 of file sisusb.h.

#define SISGR   SISUSB_PCI_IOPORTBASE + GROFFSET

Definition at line 234 of file sisusb.h.

#define SISINPSTAT   SISUSB_PCI_IOPORTBASE + INPUTSTATOFFSET

Definition at line 239 of file sisusb.h.

#define SISMISCR   SISUSB_PCI_IOPORTBASE + MISCROFFSET

Definition at line 237 of file sisusb.h.

#define SISMISCW   SISUSB_PCI_IOPORTBASE + MISCWOFFSET

Definition at line 238 of file sisusb.h.

#define SISPART1   SISUSB_PCI_IOPORTBASE + PART1OFFSET

Definition at line 240 of file sisusb.h.

#define SISPART2   SISUSB_PCI_IOPORTBASE + PART2OFFSET

Definition at line 241 of file sisusb.h.

#define SISPART3   SISUSB_PCI_IOPORTBASE + PART3OFFSET

Definition at line 242 of file sisusb.h.

#define SISPART4   SISUSB_PCI_IOPORTBASE + PART4OFFSET

Definition at line 243 of file sisusb.h.

#define SISPART5   SISUSB_PCI_IOPORTBASE + PART5OFFSET

Definition at line 244 of file sisusb.h.

#define SISPEL   SISUSB_PCI_IOPORTBASE + PELMASKOFFSET

Definition at line 252 of file sisusb.h.

#define SISSR   SISUSB_PCI_IOPORTBASE + SROFFSET

Definition at line 235 of file sisusb.h.

#define SISUSB_COMMAND   _IOWR(0xF3,0x3D,struct sisusb_command)

Definition at line 307 of file sisusb.h.

#define SISUSB_CORRECT_ENDIANNESS_PACKET (   p)

Definition at line 101 of file sisusb.h.

#define SISUSB_EP_BRIDGE_IN   0x0d /* Net2280 out(0d)/in(8d) */

Definition at line 183 of file sisusb.h.

#define SISUSB_EP_BRIDGE_OUT   0x0d

Definition at line 184 of file sisusb.h.

#define SISUSB_EP_GFX_BULK_IN   0x02 /* ? 2 is "OUT" ? */

Definition at line 177 of file sisusb.h.

#define SISUSB_EP_GFX_BULK_OUT   0x01 /* gfx mem bulk out/in */

Definition at line 176 of file sisusb.h.

#define SISUSB_EP_GFX_IN   0x0e /* gfx std packet out(0e)/in(8e) */

Definition at line 173 of file sisusb.h.

#define SISUSB_EP_GFX_LBULK_OUT   0x03 /* gfx large mem bulk out */

Definition at line 179 of file sisusb.h.

#define SISUSB_EP_GFX_OUT   0x0e

Definition at line 174 of file sisusb.h.

#define SISUSB_EP_UNKNOWN_04   0x04 /* ? 4 is "OUT" ? - unused */

Definition at line 181 of file sisusb.h.

#define SISUSB_GET_CONFIG   _IOR(0xF3,0x3F,struct sisusb_info)

Definition at line 309 of file sisusb.h.

#define SISUSB_GET_CONFIG_SIZE   _IOR(0xF3,0x3E,__u32)

Definition at line 308 of file sisusb.h.

#define SISUSB_IBUF_SIZE   0x01000

Definition at line 72 of file sisusb.h.

#define SISUSB_ID   0x53495355 /* Identify myself with 'SISU' */

Definition at line 262 of file sisusb.h.

#define SISUSB_MINOR   133 /* official */

Definition at line 69 of file sisusb.h.

#define SISUSB_OBUF_SIZE   0x10000 /* fixed */

Definition at line 73 of file sisusb.h.

#define SISUSB_PATCHLEVEL   8

Definition at line 55 of file sisusb.h.

#define SISUSB_PCI_IOPORTBASE   0x0000d000

Definition at line 201 of file sisusb.h.

#define SISUSB_PCI_MEMBASE   0xd0000000

Definition at line 199 of file sisusb.h.

#define SISUSB_PCI_MMIOBASE   0xe4000000

Definition at line 200 of file sisusb.h.

#define SISUSB_PCI_MMIOSIZE   (128*1024)

Definition at line 208 of file sisusb.h.

#define SISUSB_PCI_PCONFSIZE   0x5c

Definition at line 209 of file sisusb.h.

#define SISUSB_PCI_PSEUDO_IOPORTBASE   0x0000d000

Definition at line 205 of file sisusb.h.

#define SISUSB_PCI_PSEUDO_MEMBASE   0x10000000

Definition at line 203 of file sisusb.h.

#define SISUSB_PCI_PSEUDO_MMIOBASE   0x20000000

Definition at line 204 of file sisusb.h.

#define SISUSB_PCI_PSEUDO_PCIBASE   0x00010000

Definition at line 206 of file sisusb.h.

#define SISUSB_REVISION   0

Definition at line 54 of file sisusb.h.

#define SISUSB_TYPE_IO   1

Definition at line 187 of file sisusb.h.

#define SISUSB_TYPE_MEM   0

Definition at line 186 of file sisusb.h.

#define SISUSB_VERSION   0

Definition at line 53 of file sisusb.h.

#define SISVGAEN   SISUSB_PCI_IOPORTBASE + VGAENABLE

Definition at line 253 of file sisusb.h.

#define SISVID   SISUSB_PCI_IOPORTBASE + VIDEOOFFSET

Definition at line 246 of file sisusb.h.

#define SROFFSET   0x44

Definition at line 216 of file sisusb.h.

#define SU_URB_ALLOC   2

Definition at line 169 of file sisusb.h.

#define SU_URB_BUSY   1

Definition at line 168 of file sisusb.h.

#define SUCMD_CLRSCR   0x07 /* data0:1:2 = length, data3 = address */

Definition at line 300 of file sisusb.h.

#define SUCMD_GET   0x01 /* for all: data0 = index, data3 = port */

Definition at line 293 of file sisusb.h.

#define SUCMD_HANDLETEXTMODE   0x08 /* Reset/destroy text mode */

Definition at line 302 of file sisusb.h.

#define SUCMD_SET   0x02 /* data1 = value */

Definition at line 294 of file sisusb.h.

#define SUCMD_SETAND   0x04 /* data1 = and */

Definition at line 296 of file sisusb.h.

#define SUCMD_SETANDOR   0x05 /* data1 = and, data2 = or */

Definition at line 297 of file sisusb.h.

#define SUCMD_SETMASK   0x06 /* data1 = data, data2 = mask */

Definition at line 298 of file sisusb.h.

#define SUCMD_SETMODE   0x09 /* Set a display mode (data3 = SiS mode) */

Definition at line 304 of file sisusb.h.

#define SUCMD_SETOR   0x03 /* data1 = or */

Definition at line 295 of file sisusb.h.

#define SUCMD_SETVESAMODE   0x0a /* Set a display mode (data3 = VESA mode) */

Definition at line 305 of file sisusb.h.

#define to_sisusb_dev (   d)    container_of(d, struct sisusb_usb_data, kref)

Definition at line 163 of file sisusb.h.

#define VGAENABLE   0x43

Definition at line 230 of file sisusb.h.

#define VIDEOOFFSET   0x02

Definition at line 227 of file sisusb.h.

Function Documentation

struct sisusb_packet __attribute__ ( (__packed__)  )
read

Definition at line 85 of file mpc512x_dma.c.

Variable Documentation

Definition at line 195 of file sisusb.h.

Definition at line 196 of file sisusb.h.

unsigned short header

Definition at line 194 of file sisusb.h.