Maxim Integrated 73M1822/73M1922 Hardware Module for SMDK412 User Manual

Page 3

Advertising
background image

UG_1x22_054

73M1822/73M1922 Hardware Module for SMDK412 User Guide

Rev. 1.1

3

Table of Contents

1

Introduction ............................................................................................................................... 5

1.1

Purpose and Scope ............................................................................................................ 5

1.2

Conventions Used in this Guide ........................................................................................ 5

1.3

Acronyms ............................................................................................................................ 5

2

Overview.................................................................................................................................... 6

2.1

Driver Architecture ............................................................................................................. 6

2.2

Functional Overview ........................................................................................................... 6

3

Accessing the Driver from the Linux User Space.................................................................... 7

3.1

mknod ................................................................................................................................. 7

3.2

open..................................................................................................................................... 7

3.3

close .................................................................................................................................... 8

3.4

read ..................................................................................................................................... 8

3.5

write ..................................................................................................................................... 9

3.6

ioctl ...................................................................................................................................... 9

3.6.1

TSC_1X22_MAFE_GET_RS232 .............................................................................. 10

3.6.2

TSC_1X22_MAFE_SET_RS232 .............................................................................. 10

3.6.3

TSC_1X22_MAFE_GET_RX_STAT ......................................................................... 11

3.6.4

TSC_1X22_MAFE_GET_TX_STAT ......................................................................... 11

3.6.5

TSC_1X22_MAFE_RD_REG_NB ............................................................................ 12

3.6.6

TSC_1X22_MAFE_RD_REG_IM ............................................................................. 13

3.6.7

TSC_1X22_MAFE_RD_REG_BL ............................................................................. 13

3.6.8

TSC_1X22_MAFE_WR_REG_NB............................................................................ 14

3.6.9

TSC_1X22_MAFE_WR_REG_BL ............................................................................ 14

3.6.10

TSC_1X22_MAFE_SET_REG_AUTO_POLL ........................................................... 15

3.6.11

TSC_1X22_MAFE_IRQ_HW .................................................................................... 15

3.6.12

TSC_1X22_MAFE_IRQ_SW .................................................................................... 16

3.6.13

TSC_1X22_MAFE_IRQ_ENABLE ............................................................................ 16

3.6.14

TSC_1X22_MAFE_IRQ_DISABLE ........................................................................... 17

3.6.15

TSC_1X22_MAFE_IRQ_DOWN .............................................................................. 17

3.6.16

TSC_1X22_MAFE_IRQ_DOWN_TRY...................................................................... 18

3.6.17

TSC_1X22_MAFE_IRQ_UP ..................................................................................... 18

4

Accessing the Driver from the Linux Kernel Space .............................................................. 19

4.1

mknod ............................................................................................................................... 19

4.2

tsc_1x22_mafe_open ........................................................................................................ 19

4.3

tsc_1x22_mafe_close ....................................................................................................... 19

4.4

tsc_1x22_mafe_read ......................................................................................................... 20

4.5

tsc_1x22_mafe_write ........................................................................................................ 20

4.6

ioctl .................................................................................................................................... 21

4.6.1

tsc_1x22_rs232_get ................................................................................................. 21

4.6.2

tsc_1x22_rs232_set ................................................................................................. 21

4.6.3

tsc_1x22_mafe_get_rx_stat ..................................................................................... 22

4.6.4

tsc_1x22_mafe_get_tx_stat...................................................................................... 22

4.6.5

tsc_1x22_mafe_rd_rg_nb ......................................................................................... 23

4.6.6

tsc_1x22_mafe_rd_rg_im ......................................................................................... 24

4.6.7

tsc_1x22_mafe_rd_rg_bl .......................................................................................... 24

4.6.8

tsc_1x22_mafe_wr_rg_nb ........................................................................................ 25

4.6.9

tsc_1x22_mafe_wr_rg_bl ......................................................................................... 25

4.6.10

tsc_1x22_mafe_set_reg_auto_poll ........................................................................... 26

Advertising