Registers

The abbreviations given in Column Access are explained in Section Access Types for Registers .

RTL8721Dx:

Base Address:

  • IPC0_REG : 0x41014000

  • IPC1_REG : 0x41014080

Name

Address offset

Access

Description

REG_IPC_DATA

000h

R/W

Take NP’s IPC as an example to describe the function of IPC’s internal registers. The REG_TX_DATA is used to transmit message from NP to AP. (The logic cannot be generated automatically.)

REG_IPC_ISR

004h

R/W

This register is used to record Tx empty.

REG_IPC_IMR

008h

R/W

REG_IPC_ICR

00Ch

R/W

This register can ensure that the software can manually clear the Tx register in an emergency.

REG_IPC_SEM_0

010h

R

REG_IPC_SEM_1

014h

R

REG_IPC_DUMMY

018h

R/W

REG_IPC_DATA

  • Name: Tx_Rx Register

  • Size: 32

  • Address offset: 000h

  • Read/write access: R/W

Take NP’s IPC as an example to describe the function of IPC’s internal registers. The REG_TX_DATA is

used to transmit message from NP to AP. (The logic cannot be generated automatically.)

31:16 TX0_DATA 15:0 RX0_DATA

Bit

Symbol

Access

INI

Description

31:16

TX0_DATA

R/W

0x0

After preparing descriptor, data and corresponding memory.

  • 1: Writing 1 to the Tx data register (tx0_data) channel x bit, and the data will be mapped to the CPU0’s RX data register (rx0_data) channel x bit. And the corresponding Rx full status bit in REG_ISR_CPU0 will be set.

  • 0: Writing 0 has no effect.

If the corresponding Rx full status bit in REG_ISR_CPU0 (e.g. isr_rx0_full_status6) is cleared, the corresponding bit in tx0_data will be cleaned automatically.

15:0

RX0_DATA

R

0x0

Rx data automatically maps data from tx0_data of CPU0

REG_IPC_ISR

  • Name: Interrupt Empty Full Status Register

  • Size: 32

  • Address offset: 004h

  • Read/write access: R/W

This register is used to record Tx empty.

31 ISR_TX0_EMPTY_STATUS15 30 ISR_TX0_EMPTY_STATUS14 29 ISR_TX0_EMPTY_STATUS13 28 ISR_TX0_EMPTY_STATUS12 27 ISR_TX0_EMPTY_STATUS11 26 ISR_TX0_EMPTY_STATUS10 25 ISR_TX0_EMPTY_STATUS9 24 ISR_TX0_EMPTY_STATUS8 23 ISR_TX0_EMPTY_STATUS7 22 ISR_TX0_EMPTY_STATUS6 21 ISR_TX0_EMPTY_STATUS5 20 ISR_TX0_EMPTY_STATUS4 19 ISR_TX0_EMPTY_STATUS3 18 ISR_TX0_EMPTY_STATUS2 17 ISR_TX0_EMPTY_STATUS1 16 ISR_TX0_EMPTY_STATUS0 15 ISR_RX0_FULL_STATUS15 14 ISR_RX0_FULL_STATUS14 13 ISR_RX0_FULL_STATUS13 12 ISR_RX0_FULL_STATUS12 11 ISR_RX0_FULL_STATUS11 10 ISR_RX0_FULL_STATUS10 9 ISR_RX0_FULL_STATUS9 8 ISR_RX0_FULL_STATUS8 7 ISR_RX0_FULL_STATUS7 6 ISR_RX0_FULL_STATUS6 5 ISR_RX0_FULL_STATUS5 4 ISR_RX0_FULL_STATUS4 3 ISR_RX0_FULL_STATUS3 2 ISR_RX0_FULL_STATUS2 1 ISR_RX0_FULL_STATUS1 0 ISR_RX0_FULL_STATUS0

Bit

Symbol

Access

INI

Description

31

ISR_TX0_EMPTY_STATUS15

R/W

0x0

Refer to the description of isr_tx0_empty_status0

30

ISR_TX0_EMPTY_STATUS14

R/W

0x0

Refer to the description of isr_tx0_empty_status0

29

ISR_TX0_EMPTY_STATUS13

R/W

0x0

Refer to the description of isr_tx0_empty_status0

28

ISR_TX0_EMPTY_STATUS12

R/W

0x0

Refer to the description of isr_tx0_empty_status0

27

ISR_TX0_EMPTY_STATUS11

R/W

0x0

Refer to the description of isr_tx0_empty_status0

26

ISR_TX0_EMPTY_STATUS10

R/W

0x0

Refer to the description of isr_tx0_empty_status0

25

ISR_TX0_EMPTY_STATUS9

R/W

0x0

Refer to the description of isr_tx0_empty_status0

24

ISR_TX0_EMPTY_STATUS8

R/W

0x0

Refer to the description of isr_tx0_empty_status0

23

ISR_TX0_EMPTY_STATUS7

R/W

0x0

Refer to the description of isr_tx0_empty_status0

22

ISR_TX0_EMPTY_STATUS6

R/W

0x0

Refer to the description of isr_tx0_empty_status0

21

ISR_TX0_EMPTY_STATUS5

R/W

0x0

Refer to the description of isr_tx0_empty_status0

20

ISR_TX0_EMPTY_STATUS4

R/W

0x0

Refer to the description of isr_tx0_empty_status0

19

ISR_TX0_EMPTY_STATUS3

R/W

0x0

Refer to the description of isr_tx0_empty_status0

18

ISR_TX0_EMPTY_STATUS2

R/W

0x0

Refer to the description of isr_tx0_empty_status0

17

ISR_TX0_EMPTY_STATUS1

R/W

0x0

Refer to the description of isr_tx0_empty_status0

16

ISR_TX0_EMPTY_STATUS0

R/W

0x0

Tx channel 0 empty interrupt status of CPU1 transmit to CPU0. If the corresponding Rx full status bit in REG_ISR_CPU0 (e.g. isr_rx0_full_status0) is cleared, the corresponding Tx empty status bit will be set automatically.

It will be cleared by software writing 1.

15

ISR_RX0_FULL_STATUS15

R/W

0x0

Refer to the description of isr_rx0_full_status0

14

ISR_RX0_FULL_STATUS14

R/W

0x0

Refer to the description of isr_rx0_full_status0

13

ISR_RX0_FULL_STATUS13

R/W

0x0

Refer to the description of isr_rx0_full_status0

12

ISR_RX0_FULL_STATUS12

R/W

0x0

Refer to the description of isr_rx0_full_status0

11

ISR_RX0_FULL_STATUS11

R/W

0x0

Refer to the description of isr_rx0_full_status0

10

ISR_RX0_FULL_STATUS10

R/W

0x0

Refer to the description of isr_rx0_full_status0

9

ISR_RX0_FULL_STATUS9

R/W

0x0

Refer to the description of isr_rx0_full_status0

8

ISR_RX0_FULL_STATUS8

R/W

0x0

Refer to the description of isr_rx0_full_status0

7

ISR_RX0_FULL_STATUS7

R/W

0x0

Refer to the description of isr_rx0_full_status0

6

ISR_RX0_FULL_STATUS6

R/W

0x0

Refer to the description of isr_rx0_full_status0

5

ISR_RX0_FULL_STATUS5

R/W

0x0

Refer to the description of isr_rx0_full_status0

4

ISR_RX0_FULL_STATUS4

R/W

0x0

Refer to the description of isr_rx0_full_status0

3

ISR_RX0_FULL_STATUS3

R/W

0x0

Refer to the description of isr_rx0_full_status0

2

ISR_RX0_FULL_STATUS2

R/W

0x0

Refer to the description of isr_rx0_full_status0

1

ISR_RX0_FULL_STATUS1

R/W

0x0

Refer to the description of isr_rx0_full_status0

0

ISR_RX0_FULL_STATUS0

R/W

0x0

Rx channel 0 full interrupt status of CPU1. The corresponding Rx full status bit will be set by CPU0’s Tx data register (tx0_data) channel 0.

It will be cleared by software writing 1.

REG_IPC_IMR

  • Name: Interrupt Empty Full Mask Register

  • Size: 32

  • Address offset: 008h

  • Read/write access: R/W

31:16 IMR_TX0_EMPTY_MASK 15:0 IMR_RX0_FULL_MASK

Bit

Symbol

Access

INI

Description

31:16

IMR_TX0_EMPTY_MASK

R/W

0x0

  • 0: Mask Tx Channel x empty interrupt of CPU1 transmit to CPU0

  • 1: Unmask Tx Channel x empty interrupt of CPU1 transmit to CPU0

15:0

IMR_RX0_FULL_MASK

R/W

0x0

  • 0: Mask Rx Channel x full interrupt of CPU1 received from CPU0

  • 1: Unmask Rx Channel x full interrupt of CPU1 received from CPU0

REG_IPC_ICR

  • Name: Clear Tx Register

  • Size: 32

  • Address offset: 00Ch

  • Read/write access: R/W

This register can ensure that the software can manually clear the Tx register in an emergency.

31 ICR_TX0_DATA_CLEAR15 30 ICR_TX0_DATA_CLEAR14 29 ICR_TX0_DATA_CLEAR13 28 ICR_TX0_DATA_CLEAR12 27 ICR_TX0_DATA_CLEAR11 26 ICR_TX0_DATA_CLEAR10 25 ICR_TX0_DATA_CLEAR9 24 ICR_TX0_DATA_CLEAR8 23 ICR_TX0_DATA_CLEAR7 22 ICR_TX0_DATA_CLEAR6 21 ICR_TX0_DATA_CLEAR5 20 ICR_TX0_DATA_CLEAR4 19 ICR_TX0_DATA_CLEAR3 18 ICR_TX0_DATA_CLEAR2 17 ICR_TX0_DATA_CLEAR1 16 ICR_TX0_DATA_CLEAR0 15:0 RSVD0

Bit

Symbol

Access

INI

Description

31

ICR_TX0_DATA_CLEAR15

R/W

0x0

Refer to the description of icr_tx0_data_clear0

30

ICR_TX0_DATA_CLEAR14

R/W

0x0

Refer to the description of icr_tx0_data_clear0

29

ICR_TX0_DATA_CLEAR13

R/W

0x0

Refer to the description of icr_tx0_data_clear0

28

ICR_TX0_DATA_CLEAR12

R/W

0x0

Refer to the description of icr_tx0_data_clear0

27

ICR_TX0_DATA_CLEAR11

R/W

0x0

Refer to the description of icr_tx0_data_clear0

26

ICR_TX0_DATA_CLEAR10

R/W

0x0

Refer to the description of icr_tx0_data_clear0

25

ICR_TX0_DATA_CLEAR9

R/W

0x0

Refer to the description of icr_tx0_data_clear0

24

ICR_TX0_DATA_CLEAR8

R/W

0x0

Refer to the description of icr_tx0_data_clear0

23

ICR_TX0_DATA_CLEAR7

R/W

0x0

Refer to the description of icr_tx0_data_clear0

22

ICR_TX0_DATA_CLEAR6

R/W

0x0

Refer to the description of icr_tx0_data_clear0

21

ICR_TX0_DATA_CLEAR5

R/W

0x0

Refer to the description of icr_tx0_data_clear0

20

ICR_TX0_DATA_CLEAR4

R/W

0x0

Refer to the description of icr_tx0_data_clear0

19

ICR_TX0_DATA_CLEAR3

R/W

0x0

Refer to the description of icr_tx0_data_clear0

18

ICR_TX0_DATA_CLEAR2

R/W

0x0

Refer to the description of icr_tx0_data_clear0

17

ICR_TX0_DATA_CLEAR1

R/W

0x0

Refer to the description of icr_tx0_data_clear0

16

ICR_TX0_DATA_CLEAR0

R/W

0x0

  • 0: Writing 0 has no effect.

  • 1: Clear the Tx data register (tx0_data) channel 0 bit.

15:0

RSVD0

R/W

0x0

REG_IPC_SEM_0

  • Size: 32

  • Address offset: 010h

  • Read/write access: R

31:0 SEM_0_DATA

Bit

Symbol

Access

INI

Description

31:0

SEM_0_DATA

R

0x0

It is used to indicate whether this semaphore is occupied. 0: Not occupied; 1: Occupied.

REG_IPC_SEM_1

  • Size: 32

  • Address offset: 014h

  • Read/write access: R

31:0 SEM_1_DATA

Bit

Symbol

Access

INI

Description

31:0

SEM_1_DATA

R

0x0

It is used to indicate whether this semaphore is occupied. 0: Not occupied; 1: Occupied.

REG_IPC_DUMMY

  • Name: Dummy Register

  • Size: 32

  • Address offset: 018h

  • Read/write access: R/W

31:16 RSVD 15:0 DUMMY

Bit

Symbol

Access

INI

Description

31:16

RSVD

R

-

Reserved

15:0

DUMMY

R/W

0x0

Dummy register