diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-11-15 22:16:05 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-11-15 22:16:05 +0000 |
commit | 7c9d8e07e188597e570a311efc46cb1ab013e5e7 (patch) | |
tree | 63edf144a4488a06356947e72f4fc5fb2222bde0 /hw/parallel.c | |
parent | 868bfe2b2ba2c6c7e6580ad35af85ad3fcb994bb (diff) |
new network emulation
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1622 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/parallel.c')
-rw-r--r-- | hw/parallel.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/hw/parallel.c b/hw/parallel.c index 95ac7fd688..cba95610ef 100644 --- a/hw/parallel.c +++ b/hw/parallel.c @@ -154,27 +154,6 @@ static uint32_t parallel_ioport_read(void *opaque, uint32_t addr) return ret; } -static int parallel_can_receive(ParallelState *s) -{ - return 0; -} - -static void parallel_receive_byte(ParallelState *s, int ch) -{ -} - -static int parallel_can_receive1(void *opaque) -{ - ParallelState *s = opaque; - return parallel_can_receive(s); -} - -static void parallel_receive1(void *opaque, const uint8_t *buf, int size) -{ - ParallelState *s = opaque; - parallel_receive_byte(s, buf[0]); -} - /* If fd is zero, it means that the parallel device uses the console */ ParallelState *parallel_init(int base, int irq, CharDriverState *chr) { @@ -200,6 +179,5 @@ ParallelState *parallel_init(int base, int irq, CharDriverState *chr) register_ioport_write(base, 8, 1, parallel_ioport_write, s); register_ioport_read(base, 8, 1, parallel_ioport_read, s); - qemu_chr_add_read_handler(chr, parallel_can_receive1, parallel_receive1, s); return s; } |