]> git.proxmox.com Git - mirror_qemu.git/blame - hw/eeprom93xx.h
isa: always use provided ISA bus when creating an isa device
[mirror_qemu.git] / hw / eeprom93xx.h
CommitLineData
663e8e51
TS
1/*
2 * QEMU EEPROM 93xx emulation
3 *
4 * Copyright (c) 2006-2007 Stefan Weil
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.
15 *
16 * You should have received a copy of the GNU General Public License
8167ee88 17 * along with this program; if not, see <http://www.gnu.org/licenses/>.
663e8e51
TS
18 */
19
20#ifndef EEPROM93XX_H
21#define EEPROM93XX_H
22
c227f099 23typedef struct _eeprom_t eeprom_t;
663e8e51
TS
24
25/* Create a new EEPROM with (nwords * 2) bytes. */
5fce2b3e 26eeprom_t *eeprom93xx_new(DeviceState *dev, uint16_t nwords);
663e8e51
TS
27
28/* Destroy an existing EEPROM. */
5fce2b3e 29void eeprom93xx_free(DeviceState *dev, eeprom_t *eeprom);
663e8e51
TS
30
31/* Read from the EEPROM. */
c227f099 32uint16_t eeprom93xx_read(eeprom_t *eeprom);
663e8e51
TS
33
34/* Write to the EEPROM. */
c227f099 35void eeprom93xx_write(eeprom_t *eeprom, int eecs, int eesk, int eedi);
663e8e51
TS
36
37/* Get EEPROM data array. */
c227f099 38uint16_t *eeprom93xx_data(eeprom_t *eeprom);
663e8e51
TS
39
40#endif /* EEPROM93XX_H */