File: prototypes.h

package info (click to toggle)
yepp 0.0.5-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, sarge
  • size: 388 kB
  • ctags: 158
  • sloc: ansic: 1,328; makefile: 59; sh: 26
file content (50 lines) | stat: -rw-r--r-- 1,654 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50

/* ieee1284.c */
int ieee1284_writebyte(unsigned char b);
int ieee1284_ftor(void);
int ieee1284_readbyte(unsigned char *i);
int ieee1284_rtof(void);
int ieee1284_term(void);
int yepp_wakeupandping(void);
int phase1(void);
int phase2(void);
int phase3(void);
void phase4(void);
void release(void);
int yepp_read(char *buf, int i);
int yepp_write(char *buf, int i);
int ieee1284_init(int port);
/* util.c */
void moan(char *fmt, ...);
/* yepplib.c */
void yepp_dir_free(struct yepp_dirent *ptr);
int yepp_bytes_to_blocks(int bytes);
int yepp_blocks_to_bytes(int blocks);
void do_progress(char *fname, int writ, int size, int i, int blocks, struct timeval *start);
int yepp_put(int where, int type, char *name, FILE *file);
int yepp_get(int index, FILE *f);
struct yepp_dirent *yepp_dir(void);
struct yepp_status *yepp_status(void);
int yepp_erase(int f);
int yepp_format(int where);
int yepp_get_config(char *p1, unsigned char *order);
int yepp_ping(void);
int yepp_put_config(int where, int type, char *name, char *buf, int len);
int yepp_put_encode(int where, int type, char *name, FILE *file);
int yepp_put_decode(int where, int type, char *name, FILE *file);
int yepp_put_serial(int where, int type, char *name, FILE *file);
char *yepp_getorder(void);
char *yepp_getnamebyindex(int index);
int yepp_putorder(unsigned char *order);
int yepp_init(int port);
/* yepp.c */
void usage(char *name);
void dir(void);
void status(void);
void order(void);
void do_setorder(char **list, int n);
int do_erase(char *which);
int do_download(char *which);
int do_upload(int where, char *fname, char *ftype);
void do_erase_all(void);
int main(int argc, char **argv);