Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
mac_psc.h File Reference

Go to the source code of this file.

Macros

#define PSC_BASE   (0x50F31000)
 
#define pIFRbase   0x100
 
#define pIERbase   0x104
 
#define PSC_MYSTERY   0x804
 
#define PSC_CTL_BASE   0xC00
 
#define PSC_SCSI_CTL   0xC00
 
#define PSC_ENETRD_CTL   0xC10
 
#define PSC_ENETWR_CTL   0xC20
 
#define PSC_FDC_CTL   0xC30
 
#define PSC_SCCA_CTL   0xC40
 
#define PSC_SCCB_CTL   0xC50
 
#define PSC_SCCATX_CTL   0xC60
 
#define PSC_ADDR_BASE   0x1000
 
#define PSC_LEN_BASE   0x1004
 
#define PSC_CMD_BASE   0x1008
 
#define PSC_SET0   0x00
 
#define PSC_SET1   0x10
 
#define PSC_SCSI_ADDR   0x1000 /* confirmed */
 
#define PSC_SCSI_LEN   0x1004 /* confirmed */
 
#define PSC_SCSI_CMD   0x1008 /* confirmed */
 
#define PSC_ENETRD_ADDR   0x1020 /* confirmed */
 
#define PSC_ENETRD_LEN   0x1024 /* confirmed */
 
#define PSC_ENETRD_CMD   0x1028 /* confirmed */
 
#define PSC_ENETWR_ADDR   0x1040 /* confirmed */
 
#define PSC_ENETWR_LEN   0x1044 /* confirmed */
 
#define PSC_ENETWR_CMD   0x1048 /* confirmed */
 
#define PSC_FDC_ADDR   0x1060 /* strongly suspected */
 
#define PSC_FDC_LEN   0x1064 /* strongly suspected */
 
#define PSC_FDC_CMD   0x1068 /* strongly suspected */
 
#define PSC_SCCA_ADDR   0x1080 /* confirmed */
 
#define PSC_SCCA_LEN   0x1084 /* confirmed */
 
#define PSC_SCCA_CMD   0x1088 /* confirmed */
 
#define PSC_SCCB_ADDR   0x10A0 /* confirmed */
 
#define PSC_SCCB_LEN   0x10A4 /* confirmed */
 
#define PSC_SCCB_CMD   0x10A8 /* confirmed */
 
#define PSC_SCCATX_ADDR   0x10C0 /* confirmed */
 
#define PSC_SCCATX_LEN   0x10C4 /* confirmed */
 
#define PSC_SCCATX_CMD   0x10C8 /* confirmed */
 
#define PSC_SND_CTL
 
#define PSC_SND_SOURCE
 
#define PSC_SND_STATUS1
 
#define PSC_SND_HUH3
 
#define PSC_SND_BITS2GO
 
#define PSC_SND_INADDR
 
#define PSC_SND_OUTADDR
 
#define PSC_SND_LEN
 
#define PSC_SND_HUH4
 
#define PSC_SND_STATUS2
 
#define PSC_SND_HUH5
 

Functions

void psc_register_interrupts (void)
 
void psc_irq_enable (int)
 
void psc_irq_disable (int)
 

Variables

volatile __u8psc
 
int psc_present
 

Macro Definition Documentation

#define pIERbase   0x104

Definition at line 48 of file mac_psc.h.

#define pIFRbase   0x100

Definition at line 47 of file mac_psc.h.

#define PSC_ADDR_BASE   0x1000

Definition at line 72 of file mac_psc.h.

#define PSC_BASE   (0x50F31000)

Definition at line 36 of file mac_psc.h.

#define PSC_CMD_BASE   0x1008

Definition at line 74 of file mac_psc.h.

#define PSC_CTL_BASE   0xC00

Definition at line 56 of file mac_psc.h.

#define PSC_ENETRD_ADDR   0x1020 /* confirmed */

Definition at line 82 of file mac_psc.h.

#define PSC_ENETRD_CMD   0x1028 /* confirmed */

Definition at line 84 of file mac_psc.h.

#define PSC_ENETRD_CTL   0xC10

Definition at line 59 of file mac_psc.h.

#define PSC_ENETRD_LEN   0x1024 /* confirmed */

Definition at line 83 of file mac_psc.h.

#define PSC_ENETWR_ADDR   0x1040 /* confirmed */

Definition at line 85 of file mac_psc.h.

#define PSC_ENETWR_CMD   0x1048 /* confirmed */

Definition at line 87 of file mac_psc.h.

#define PSC_ENETWR_CTL   0xC20

Definition at line 60 of file mac_psc.h.

#define PSC_ENETWR_LEN   0x1044 /* confirmed */

Definition at line 86 of file mac_psc.h.

#define PSC_FDC_ADDR   0x1060 /* strongly suspected */

Definition at line 88 of file mac_psc.h.

#define PSC_FDC_CMD   0x1068 /* strongly suspected */

Definition at line 90 of file mac_psc.h.

#define PSC_FDC_CTL   0xC30

Definition at line 61 of file mac_psc.h.

#define PSC_FDC_LEN   0x1064 /* strongly suspected */

Definition at line 89 of file mac_psc.h.

#define PSC_LEN_BASE   0x1004

Definition at line 73 of file mac_psc.h.

#define PSC_MYSTERY   0x804

Definition at line 54 of file mac_psc.h.

#define PSC_SCCA_ADDR   0x1080 /* confirmed */

Definition at line 91 of file mac_psc.h.

#define PSC_SCCA_CMD   0x1088 /* confirmed */

Definition at line 93 of file mac_psc.h.

#define PSC_SCCA_CTL   0xC40

Definition at line 62 of file mac_psc.h.

#define PSC_SCCA_LEN   0x1084 /* confirmed */

Definition at line 92 of file mac_psc.h.

#define PSC_SCCATX_ADDR   0x10C0 /* confirmed */

Definition at line 97 of file mac_psc.h.

#define PSC_SCCATX_CMD   0x10C8 /* confirmed */

Definition at line 99 of file mac_psc.h.

#define PSC_SCCATX_CTL   0xC60

Definition at line 64 of file mac_psc.h.

#define PSC_SCCATX_LEN   0x10C4 /* confirmed */

Definition at line 98 of file mac_psc.h.

#define PSC_SCCB_ADDR   0x10A0 /* confirmed */

Definition at line 94 of file mac_psc.h.

#define PSC_SCCB_CMD   0x10A8 /* confirmed */

Definition at line 96 of file mac_psc.h.

#define PSC_SCCB_CTL   0xC50

Definition at line 63 of file mac_psc.h.

#define PSC_SCCB_LEN   0x10A4 /* confirmed */

Definition at line 95 of file mac_psc.h.

#define PSC_SCSI_ADDR   0x1000 /* confirmed */

Definition at line 79 of file mac_psc.h.

#define PSC_SCSI_CMD   0x1008 /* confirmed */

Definition at line 81 of file mac_psc.h.

#define PSC_SCSI_CTL   0xC00

Definition at line 58 of file mac_psc.h.

#define PSC_SCSI_LEN   0x1004 /* confirmed */

Definition at line 80 of file mac_psc.h.

#define PSC_SET0   0x00

Definition at line 76 of file mac_psc.h.

#define PSC_SET1   0x10

Definition at line 77 of file mac_psc.h.

#define PSC_SND_BITS2GO
Value:
0x20E /*
* [ 16-bit ]
* Counts down to zero from some constant
* value. The value appears to be the
* number of _bits_ remaining before the
* buffer is full, which would make sense
* since Apple's docs say the sound DMA
* channels are 1 bit wide.
*/

Definition at line 120 of file mac_psc.h.

#define PSC_SND_CTL

Definition at line 110 of file mac_psc.h.

#define PSC_SND_HUH3
Value:
0x20C /*
* [ 16-bit ]
* Unknown 16-bit value, always 0x0000.
*/

Definition at line 119 of file mac_psc.h.

#define PSC_SND_HUH4
Value:
0x21A /*
* [ 16-bit ]
* Unknown, always 0x0000.
*/

Definition at line 124 of file mac_psc.h.

#define PSC_SND_HUH5
Value:
0x21E /*
* [ 16-bit ]
* Unknown, always 0x0000.
*/

Definition at line 126 of file mac_psc.h.

#define PSC_SND_INADDR
Value:
0x210 /*
* [ 32-bit ]
* Address of the sound input DMA buffer
*/

Definition at line 121 of file mac_psc.h.

#define PSC_SND_LEN
Value:
0x218 /*
* [ 16-bit ]
* Length of both buffers in eight-byte units.
*/

Definition at line 123 of file mac_psc.h.

#define PSC_SND_OUTADDR
Value:
0x214 /*
* [ 32-bit ]
* Address of the sound output DMA buffer
*/

Definition at line 122 of file mac_psc.h.

#define PSC_SND_SOURCE
Value:
0x204 /*
* [ 32-bit ]
* Controls input source and volume:
*
* bits 12-15 : input source volume, 0 - F
* bits 16-19 : unknown, always 0x5
* bits 20-23 : input source selection:
* 0x3 = CD Audio
* 0x4 = External Audio
*
* The volume is definitely not the general
* output volume as it doesn't affect the
* alert sound volume.
*/

Definition at line 117 of file mac_psc.h.

#define PSC_SND_STATUS1
Value:
0x208 /*
* [ 32-bit ]
* Appears to be a read-only status register.
* The usual value is 0x00400002.
*/

Definition at line 118 of file mac_psc.h.

#define PSC_SND_STATUS2
Value:
0x21C /*
* [ 16-bit ]
* Appears to e a read-only status register.
* The usual value is 0x0200.
*/

Definition at line 125 of file mac_psc.h.

Function Documentation

void psc_irq_disable ( int  )

Definition at line 173 of file psc.c.

void psc_irq_enable ( int  )

Definition at line 162 of file psc.c.

void psc_register_interrupts ( void  )

Definition at line 150 of file psc.c.

Variable Documentation

volatile __u8* psc

Definition at line 32 of file psc.c.

int psc_present

Definition at line 31 of file psc.c.