Revision 5fafdf24 hw/slavio_serial.c

b/hw/slavio_serial.c
1 1
/*
2 2
 * QEMU Sparc SLAVIO serial port emulation
3
 * 
3
 *
4 4
 * Copyright (c) 2003-2005 Fabrice Bellard
5
 * 
5
 *
6 6
 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 7
 * of this software and associated documentation files (the "Software"), to deal
8 8
 * in the Software without restriction, including without limitation the rights
......
35 35
 * This is the serial port, mouse and keyboard part of chip STP2001
36 36
 * (Slave I/O), also produced as NCR89C105. See
37 37
 * http://www.ibiblio.org/pub/historic-linux/early-ports/Sparc/NCR/NCR89C105.txt
38
 * 
38
 *
39 39
 * The serial ports implement full AMD AM8530 or Zilog Z8530 chips,
40 40
 * mouse and keyboard ports don't implement all functions and they are
41 41
 * only asynchronous. There is no DMA.
......
136 136
    ChannelState *s = opaque;
137 137
    SERIOQueue *q = &s->queue;
138 138
    int val;
139
    
139
   
140 140
    if (q->count == 0) {
141 141
	return 0;
142 142
    } else {
......
662 662
    }
663 663
}
664 664

  
665
static void sunmouse_event(void *opaque, 
665
static void sunmouse_event(void *opaque,
666 666
                               int dx, int dy, int dz, int buttons_state)
667 667
{
668 668
    ChannelState *s = opaque;

Also available in: Unified diff