Urja Rannikko | 615ba18 | 2017-06-15 15:28:27 +0300 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the flashrom project. |
| 3 | * |
| 4 | * Copyright (C) 2017 Urja Rannikko <urjaman@gmail.com> |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by |
| 8 | * the Free Software Foundation; either version 2 of the License, or |
| 9 | * (at your option) any later version. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
Urja Rannikko | 615ba18 | 2017-06-15 15:28:27 +0300 | [diff] [blame] | 15 | */ |
| 16 | |
Urja Rannikko | 615ba18 | 2017-06-15 15:28:27 +0300 | [diff] [blame] | 17 | #include <errno.h> |
| 18 | |
Thomas Heijligen | 140c126 | 2021-09-27 15:12:26 +0200 | [diff] [blame^] | 19 | #include "custom_baud.h" |
| 20 | |
Urja Rannikko | 615ba18 | 2017-06-15 15:28:27 +0300 | [diff] [blame] | 21 | /* Stub, should not get called. */ |
| 22 | int set_custom_baudrate(int fd, unsigned int baud) |
| 23 | { |
| 24 | errno = ENOSYS; /* Hoping "Function not supported" will make you look here. */ |
| 25 | return -1; |
| 26 | } |
| 27 | |
| 28 | int use_custom_baud(unsigned int baud, const struct baudentry *baudtable) |
| 29 | { |
| 30 | return 0; |
| 31 | } |