blob: 3a105c8bb44bf404612c4faa9c62cef6d249e1c3 [file] [log] [blame]
Urja Rannikko22915352009-06-23 11:33:43 +00001/*
2 * This file is part of the flashrom project.
3 *
4 * Copyright (C) 2009 Urja Rannikko <urjaman@gmail.com>
5 * Copyright (C) 2009 Carl-Daniel Hailfinger
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 */
21
22#include <string.h>
23#include <stdlib.h>
24#include <ctype.h>
25#include <fcntl.h>
26#include <sys/types.h>
27#include <sys/socket.h>
28#include <arpa/inet.h>
29#include <netinet/in.h>
30#include <netinet/tcp.h>
31#include <netdb.h>
32#include <sys/stat.h>
33#include <errno.h>
34#include <stdio.h>
35#include <unistd.h>
36#include <inttypes.h>
37#include <termios.h>
38#include "flash.h"
39
40char *serprog_param = NULL;
41
42#define SERPROG_SUPPORT 0
43#if SERPROG_SUPPORT == 1
44#else
45int serprog_init(void)
46{
47 fprintf(stderr, "Serial programmer support was not compiled in\n");
48 exit(1);
49}
50
51int serprog_shutdown(void)
52{
53 fprintf(stderr, "Serial programmer support was not compiled in\n");
54 exit(1);
55}
56
57void serprog_chip_writeb(uint8_t val, chipaddr addr)
58{
59 fprintf(stderr, "Serial programmer support was not compiled in\n");
60 exit(1);
61}
62
63uint8_t serprog_chip_readb(const chipaddr addr)
64{
65 fprintf(stderr, "Serial programmer support was not compiled in\n");
66 exit(1);
67}
68
69void serprog_chip_readn(uint8_t *buf, const chipaddr addr, size_t len)
70{
71 fprintf(stderr, "Serial programmer support was not compiled in\n");
72 exit(1);
73}
74
75void serprog_delay(int delay)
76{
77 fprintf(stderr, "Serial programmer support was not compiled in\n");
78 exit(1);
79}
80#endif