~jderose/ubuntu/raring/qemu/vde-again

« back to all changes in this revision

Viewing changes to hw/eeprom93xx.h

  • Committer: Bazaar Package Importer
  • Author(s): Aurelien Jarno, Aurelien Jarno
  • Date: 2008-08-25 04:38:35 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20080825043835-8e3tftavy8bujdch
Tags: 0.9.1-6
[ Aurelien Jarno ]
* debian/control: 
  - Update list of supported targets (Closes: bug#488339).
* debian/qemu-make-debian-root:
  - Use mktemp instead of $$ to create temporary directories (Closes: 
    bug#496394).
* debian/links:
  - Add missing links to manpages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
17
 * along with this program; if not, write to the Free Software
 
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
19
 */
 
20
 
 
21
#ifndef EEPROM93XX_H
 
22
#define EEPROM93XX_H
 
23
 
 
24
typedef struct _eeprom_t eeprom_t;
 
25
 
 
26
/* Create a new EEPROM with (nwords * 2) bytes. */
 
27
eeprom_t *eeprom93xx_new(uint16_t nwords);
 
28
 
 
29
/* Destroy an existing EEPROM. */
 
30
void eeprom93xx_free(eeprom_t *eeprom);
 
31
 
 
32
/* Read from the EEPROM. */
 
33
uint16_t eeprom93xx_read(eeprom_t *eeprom);
 
34
 
 
35
/* Write to the EEPROM. */
 
36
void eeprom93xx_write(eeprom_t *eeprom, int eecs, int eesk, int eedi);
 
37
 
 
38
/* Get EEPROM data array. */
 
39
uint16_t *eeprom93xx_data(eeprom_t *eeprom);
 
40
 
 
41
#endif /* EEPROM93XX_H */