version 1.2, 2007/10/29 15:10:34 |
version 1.3, 2007/10/29 21:10:03 |
|
|
* testarm Real Time Clock driver. |
* testarm Real Time Clock driver. |
*/ |
*/ |
int tartc_attach(struct device *, uint32_t loc, uint8_t flags); |
int tartc_attach(struct device *, uint32_t loc, uint8_t flags); |
|
void tartc_interrupt(struct device *); |
|
|
|
|
struct driver tartc_dr = { |
struct driver tartc_dr = { |
sizeof(struct tartc_dd), |
sizeof(struct tartc_dd), |
tartc_attach, |
tartc_attach, |
NULL |
NULL, |
|
tartc_interrupt |
}; |
}; |
|
|
|
|
|
|
printf("testarm Real Time Clock (%d seconds past Epoch)\n", seconds); |
printf("testarm Real Time Clock (%d seconds past Epoch)\n", seconds); |
|
|
return(0); |
return(0); |
|
|
|
} |
|
|
|
|
|
void |
|
tartc_interrupt(struct device *self) |
|
{ |
|
/* TODO */ |
|
|
} |
} |
|
|