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

« back to all changes in this revision

Viewing changes to hw/tc58128.c

  • Committer: Bazaar Package Importer
  • Author(s): Aurelien Jarno, Aurelien Jarno
  • Date: 2009-03-22 10:13:17 UTC
  • mfrom: (1.2.1 upstream) (6.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20090322101317-iigjtnu5qil35dtb
Tags: 0.10.1-1
[ Aurelien Jarno ]
* New upstream stable release:
  - patches/80_stable-branch.patch: remove.
* debian/control: 
  - Remove depends on proll.
  - Move depends on device-tree-compiler to build-depends.
  - Bump Standards-Version to 3.8.1 (no changes).
* patches/82_qemu-img_decimal.patch: new patch from upstream to make
  qemu-img accept sizes with decimal values (closes: bug#501400).

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
#define FLASH_SIZE (16*1024*1024)
28
28
 
29
 
void init_dev(tc58128_dev * dev, char *filename)
 
29
static void init_dev(tc58128_dev * dev, const char *filename)
30
30
{
31
31
    int ret, blocks;
32
32
 
58
58
    }
59
59
}
60
60
 
61
 
void handle_command(tc58128_dev * dev, uint8_t command)
 
61
static void handle_command(tc58128_dev * dev, uint8_t command)
62
62
{
63
63
    switch (command) {
64
64
    case 0xff:
86
86
    }
87
87
}
88
88
 
89
 
void handle_address(tc58128_dev * dev, uint8_t data)
 
89
static void handle_address(tc58128_dev * dev, uint8_t data)
90
90
{
91
91
    switch (dev->state) {
92
92
    case READ1:
119
119
    }
120
120
}
121
121
 
122
 
uint8_t handle_read(tc58128_dev * dev)
 
122
static uint8_t handle_read(tc58128_dev * dev)
123
123
{
124
124
#if 0
125
125
    if (dev->address % 0x100000 == 0)
131
131
/* We never mark the device as busy, so interrupts cannot be triggered
132
132
   XXXXX */
133
133
 
134
 
int tc58128_cb(uint16_t porta, uint16_t portb,
135
 
               uint16_t * periph_pdtra, uint16_t * periph_portadir,
136
 
               uint16_t * periph_pdtrb, uint16_t * periph_portbdir)
 
134
static int tc58128_cb(uint16_t porta, uint16_t portb,
 
135
                      uint16_t * periph_pdtra, uint16_t * periph_portadir,
 
136
                      uint16_t * periph_pdtrb, uint16_t * periph_portbdir)
137
137
{
138
138
    int dev;
139
139
 
175
175
    tc58128_cb                  /* Callback */
176
176
};
177
177
 
178
 
int tc58128_init(struct SH7750State *s, char *zone1, char *zone2)
 
178
int tc58128_init(struct SH7750State *s, const char *zone1, const char *zone2)
179
179
{
180
180
    init_dev(&tc58128_devs[0], zone1);
181
181
    init_dev(&tc58128_devs[1], zone2);