Changeset 79f093b in rtems
- Timestamp:
- 10/09/14 15:01:34 (9 years ago)
- Branches:
- 4.11, 5, master
- Children:
- 78a38fa2
- Parents:
- a3ae261a
- git-author:
- Joel Sherrill <joel.sherrill@…> (10/09/14 15:01:34)
- git-committer:
- Joel Sherrill <joel.sherrill@…> (10/09/14 15:11:58)
- Location:
- c/src/libchip/rtc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/libchip/rtc/mc146818a.h
ra3ae261a r79f093b 55 55 */ 56 56 uint32_t mc146818a_get_register( 57 uint 32_t ulCtrlPort,58 uint8_t ucRegNum57 uintptr_t ulCtrlPort, 58 uint8_t ucRegNum 59 59 ); 60 60 61 61 void mc146818a_set_register( 62 uint 32_t ulCtrlPort,63 uint8_t ucRegNum,64 uint32_t ucData62 uintptr_t ulCtrlPort, 63 uint8_t ucRegNum, 64 uint32_t ucData 65 65 ); 66 66 -
c/src/libchip/rtc/mc146818a_ioreg.c
ra3ae261a r79f093b 6 6 * + registers are accessed as bytes 7 7 * + registers are only byte-aligned (no address gaps) 8 * 8 */ 9 10 /* 9 11 * COPYRIGHT (c) 1989-1997. 10 12 * On-Line Applications Research Corporation (OAR). … … 17 19 #include <rtems.h> 18 20 #include <bsp.h> 21 #include <libchip/rtc.h> 22 #include <libchip/mc146818a.h> 19 23 20 24 /* … … 24 28 #if defined(inport_byte) 25 29 uint32_t mc146818a_get_register( 26 uint 32_t ulCtrlPort,27 uint8_t ucRegNum30 uintptr_t ulCtrlPort, 31 uint8_t ucRegNum 28 32 ) 29 33 { 30 34 uint8_t val; 31 35 uint8_t tmp; 36 37 (void) tmp; /* eliminate warning for set but not used */ 32 38 33 39 outport_byte( ulCtrlPort, ucRegNum ); … … 39 45 40 46 void mc146818a_set_register( 41 uint 32_t ulCtrlPort,42 uint8_t ucRegNum,43 uint32_t ucData47 uintptr_t ulCtrlPort, 48 uint8_t ucRegNum, 49 uint32_t ucData 44 50 ) 45 51 {
Note: See TracChangeset
for help on using the changeset viewer.