28 lines
598 B
C
28 lines
598 B
C
#ifndef _BCM_MIRROR_H_
|
|
#define _BCM_MIRROR_H_
|
|
|
|
typedef enum __MIR_REG__
|
|
{
|
|
ING_MIR_PORT_REG = 0x20,
|
|
EG_MIR_PORT_REG = 0x28,
|
|
} MIR_REG;
|
|
|
|
typedef struct __BCM_REGS__
|
|
{
|
|
unsigned char page_addr;
|
|
unsigned char reg_addr;
|
|
unsigned char buf[256];
|
|
unsigned char len;
|
|
} BCM_REGS, *PBCM_REGS;
|
|
|
|
int mpc_spi_init(void);
|
|
void mpc_spi_exit(void);
|
|
|
|
struct spi_master* get_spi_master(void);
|
|
|
|
int bcm_mir_in_on(unsigned int src, unsigned int dst);
|
|
int bcm_mir_out_on(unsigned int src, unsigned int dst);
|
|
int bcm_mir_in_off(unsigned int fe);
|
|
int bcm_mir_out_off(unsigned int fe);
|
|
#endif
|