Urja Rannikko | 2291535 | 2009-06-23 11:33:43 +0000 | [diff] [blame] | 1 | /* |
| 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 | |
| 40 | char *serprog_param = NULL; |
| 41 | |
| 42 | #define SERPROG_SUPPORT 0 |
| 43 | #if SERPROG_SUPPORT == 1 |
| 44 | #else |
| 45 | int serprog_init(void) |
| 46 | { |
| 47 | fprintf(stderr, "Serial programmer support was not compiled in\n"); |
| 48 | exit(1); |
| 49 | } |
| 50 | |
| 51 | int serprog_shutdown(void) |
| 52 | { |
| 53 | fprintf(stderr, "Serial programmer support was not compiled in\n"); |
| 54 | exit(1); |
| 55 | } |
| 56 | |
| 57 | void 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 | |
| 63 | uint8_t serprog_chip_readb(const chipaddr addr) |
| 64 | { |
| 65 | fprintf(stderr, "Serial programmer support was not compiled in\n"); |
| 66 | exit(1); |
| 67 | } |
| 68 | |
| 69 | void 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 | |
| 75 | void serprog_delay(int delay) |
| 76 | { |
| 77 | fprintf(stderr, "Serial programmer support was not compiled in\n"); |
| 78 | exit(1); |
| 79 | } |
| 80 | #endif |