patch-2.4.22 linux-2.4.22/arch/mips/lasat/ds1603.h
Next file: linux-2.4.22/arch/mips/lasat/image/Makefile
Previous file: linux-2.4.22/arch/mips/lasat/ds1603.c
Back to the patch index
Back to the overall index
-  Lines: 34
-  Date:
2003-08-25 04:44:40.000000000 -0700
-  Orig file: 
linux-2.4.21/arch/mips/lasat/ds1603.h
-  Orig date: 
1969-12-31 16:00:00.000000000 -0800
diff -urN linux-2.4.21/arch/mips/lasat/ds1603.h linux-2.4.22/arch/mips/lasat/ds1603.h
@@ -0,0 +1,33 @@
+/* 
+ * Dallas Semiconductors 1603 RTC driver 
+ *
+ * Brian Murphy <brian@murphy.dk> 
+ *
+ */
+#ifndef __DS1603_H
+#define __DS1603_H
+
+struct ds_defs {
+	volatile u32 *reg;
+	volatile u32 *data_reg;
+	u32 rst;
+	u32 clk;
+	u32 data;
+	u32 data_read_shift;
+	char data_reversed;
+	u32 huge_delay;
+};
+
+extern struct ds_defs *ds1603;
+
+unsigned long ds1603_read(void);
+int ds1603_set(unsigned long);
+void ds1603_set_trimmer(unsigned int);
+void ds1603_enable(void);
+void ds1603_disable(void);
+void ds1603_init(struct ds_defs *);
+
+#define TRIMMER_DEFAULT	3
+#define TRIMMER_DISABLE_RTC 0
+
+#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)