diff options
| author | Chris Piazza <cpiazza@FreeBSD.org> | 1999-09-09 01:43:30 +0000 |
|---|---|---|
| committer | Chris Piazza <cpiazza@FreeBSD.org> | 1999-09-09 01:43:30 +0000 |
| commit | 0b530eecbb5953a5f3b35ddc45d135c6870adb3d (patch) | |
| tree | 3261b65222a528fc6f4c19630a073f7ada2a8715 /graphics/dc20pack/files/patch-aa | |
| parent | 9a96eee19ac9ac95f4439358455535a8aa653c9d (diff) | |
Import of dc20pack.
Dc20pack can control a Kodak DC20/25 digital camera via the embedded
serial port. Pictures are initially downloaded in the camera's native format
but can be converted to targa format.
Note that I did not test this personally as I don't own a DC20/25 :).
The submitter says that it works, though.
PR: 12909
Submitted by: Maurice Castro <maurice@serc.rmit.edu.au>
Diffstat (limited to 'graphics/dc20pack/files/patch-aa')
| -rw-r--r-- | graphics/dc20pack/files/patch-aa | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/graphics/dc20pack/files/patch-aa b/graphics/dc20pack/files/patch-aa new file mode 100644 index 000000000000..7b986f958931 --- /dev/null +++ b/graphics/dc20pack/files/patch-aa @@ -0,0 +1,44 @@ +*** dc20_hif.c.orig Sun Aug 1 13:55:41 1999 +--- dc20_hif.c Sun Aug 1 13:57:21 1999 +*************** +*** 15,21 **** + unsigned char sts_res= 0, sts_bat= 0; + unsigned char sts_pic_cnt= 0, sts_pic_rem= 0; + unsigned char dc_type= 0x25; +! unsigned char com_dev[128]= "/dev/ttyS0"; + + + /* LOCAL VARIABLES ****************************************/ +--- 15,21 ---- + unsigned char sts_res= 0, sts_bat= 0; + unsigned char sts_pic_cnt= 0, sts_pic_rem= 0; + unsigned char dc_type= 0x25; +! unsigned char com_dev[128]= "/dev/cuaa0"; + + + /* LOCAL VARIABLES ****************************************/ +*************** +*** 146,156 **** + { + switch (com_nr) + { +! case 1: strcpy(com_dev, "/dev/ttyS0") ; break; +! case 2: strcpy(com_dev, "/dev/ttyS1") ; break; +! case 3: strcpy(com_dev, "/dev/ttyS2") ; break; +! case 4: strcpy(com_dev, "/dev/ttyS3") ; break; +! default: strcpy(com_dev, "/dev/ttyS0") ; break; + } + + if ((com_hdl = open(com_dev, O_RDWR)) == -1) +--- 146,156 ---- + { + switch (com_nr) + { +! case 1: strcpy(com_dev, "/dev/cuaa0") ; break; +! case 2: strcpy(com_dev, "/dev/cuaa1") ; break; +! case 3: strcpy(com_dev, "/dev/cuaa2") ; break; +! case 4: strcpy(com_dev, "/dev/cuaa3") ; break; +! default: strcpy(com_dev, "/dev/cuaa0") ; break; + } + + if ((com_hdl = open(com_dev, O_RDWR)) == -1) |
