summarylogtreecommitdiffstats
path: root/eep24c_0.1.2-5.patch
diff options
context:
space:
mode:
authorGiovanni Scafora2015-06-09 14:03:00 +0200
committerGiovanni Scafora2015-06-09 14:03:00 +0200
commit3956294df4dcf743f7b250f23b337e6b71068872 (patch)
tree9fa46c407fb036adbb9ab9a99b41cf434a038c2a /eep24c_0.1.2-5.patch
downloadaur-3956294df4dcf743f7b250f23b337e6b71068872.tar.gz
Initial import
Diffstat (limited to 'eep24c_0.1.2-5.patch')
-rw-r--r--eep24c_0.1.2-5.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/eep24c_0.1.2-5.patch b/eep24c_0.1.2-5.patch
new file mode 100644
index 000000000000..354bbc75b978
--- /dev/null
+++ b/eep24c_0.1.2-5.patch
@@ -0,0 +1,46 @@
+--- eep24c-0.1.2.orig/mcdelay.h
++++ eep24c-0.1.2/mcdelay.h
+@@ -24,7 +24,7 @@
+ #ifndef _MICRODELAY_H
+ #define _MICRODELAY_H
+
+-void microdelay_init(int multiply_factor);
++void microdelay_init(unsigned int multiply_factor);
+ void microdelay(unsigned int microsec);
+
+ #endif
+--- eep24c-0.1.2.orig/mcdelay.c
++++ eep24c-0.1.2/mcdelay.c
+@@ -43,7 +43,7 @@
+ int old_port_value;
+ unsigned int m_f;
+
+-void microdelay_init(int multiply_factor) {
++void microdelay_init(unsigned int multiply_factor) {
+ /* permition to write in port 0x80
+ nothing is suposed to use this port
+ however, we will write the same value we read... */
+@@ -61,19 +61,15 @@
+ }
+
+ void microdelay(unsigned int microsec) {
+- unsigned int i;
+- i = m_f;
++ unsigned long int i;
++ i = m_f * microsec;
+ while (i)
+ {
+- while (microsec)
+- {
+ #ifdef __dos__
+- outportb(0x80, old_port_value);
++ outportb(0x80, old_port_value);
+ #else
+- outb(old_port_value,0x80);
++ outb(old_port_value,0x80);
+ #endif
+- microsec--;
+- }
+ i--;
+ }
+ }