mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
xen: re-name XenDevice to XenLegacyDevice...
...and xen_backend.h to xen-legacy-backend.h Rather than attempting to convert the existing backend infrastructure to be QOM compliant (which would be hard to do in an incremental fashion), subsequent patches will introduce a completely new framework for Xen PV backends. Hence it is necessary to re-name parts of existing code to avoid name clashes. The re-named 'legacy' infrastructure will be removed once all backends have been ported to the new framework. This patch is purely cosmetic. No functional change. Signed-off-by: Paul Durrant <paul.durrant@citrix.com> Acked-by: Anthony Perard <anthony.perard@citrix.com> Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
This commit is contained in:
parent
92dbfcc6d4
commit
2d0ed5e642
22 changed files with 169 additions and 151 deletions
|
@ -30,7 +30,7 @@
|
|||
#include "hw/hw.h"
|
||||
#include "ui/input.h"
|
||||
#include "ui/console.h"
|
||||
#include "hw/xen/xen_backend.h"
|
||||
#include "hw/xen/xen-legacy-backend.h"
|
||||
|
||||
#include <xen/event_channel.h>
|
||||
#include <xen/io/fbif.h>
|
||||
|
@ -46,7 +46,7 @@
|
|||
/* -------------------------------------------------------------------- */
|
||||
|
||||
struct common {
|
||||
struct XenDevice xendev; /* must be first */
|
||||
struct XenLegacyDevice xendev; /* must be first */
|
||||
void *page;
|
||||
};
|
||||
|
||||
|
@ -342,14 +342,14 @@ static QemuInputHandler xenfb_rel_mouse = {
|
|||
.sync = xenfb_mouse_sync,
|
||||
};
|
||||
|
||||
static int input_init(struct XenDevice *xendev)
|
||||
static int input_init(struct XenLegacyDevice *xendev)
|
||||
{
|
||||
xenstore_write_be_int(xendev, "feature-abs-pointer", 1);
|
||||
xenstore_write_be_int(xendev, "feature-raw-pointer", 1);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int input_initialise(struct XenDevice *xendev)
|
||||
static int input_initialise(struct XenLegacyDevice *xendev)
|
||||
{
|
||||
struct XenInput *in = container_of(xendev, struct XenInput, c.xendev);
|
||||
int rc;
|
||||
|
@ -361,7 +361,7 @@ static int input_initialise(struct XenDevice *xendev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static void input_connected(struct XenDevice *xendev)
|
||||
static void input_connected(struct XenLegacyDevice *xendev)
|
||||
{
|
||||
struct XenInput *in = container_of(xendev, struct XenInput, c.xendev);
|
||||
|
||||
|
@ -395,7 +395,7 @@ static void input_connected(struct XenDevice *xendev)
|
|||
}
|
||||
}
|
||||
|
||||
static void input_disconnect(struct XenDevice *xendev)
|
||||
static void input_disconnect(struct XenLegacyDevice *xendev)
|
||||
{
|
||||
struct XenInput *in = container_of(xendev, struct XenInput, c.xendev);
|
||||
|
||||
|
@ -410,7 +410,7 @@ static void input_disconnect(struct XenDevice *xendev)
|
|||
common_unbind(&in->c);
|
||||
}
|
||||
|
||||
static void input_event(struct XenDevice *xendev)
|
||||
static void input_event(struct XenLegacyDevice *xendev)
|
||||
{
|
||||
struct XenInput *xenfb = container_of(xendev, struct XenInput, c.xendev);
|
||||
struct xenkbd_page *page = xenfb->c.page;
|
||||
|
@ -867,7 +867,7 @@ static void xenfb_handle_events(struct XenFB *xenfb)
|
|||
page->out_cons = cons;
|
||||
}
|
||||
|
||||
static int fb_init(struct XenDevice *xendev)
|
||||
static int fb_init(struct XenLegacyDevice *xendev)
|
||||
{
|
||||
#ifdef XENFB_TYPE_RESIZE
|
||||
xenstore_write_be_int(xendev, "feature-resize", 1);
|
||||
|
@ -875,7 +875,7 @@ static int fb_init(struct XenDevice *xendev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int fb_initialise(struct XenDevice *xendev)
|
||||
static int fb_initialise(struct XenLegacyDevice *xendev)
|
||||
{
|
||||
struct XenFB *fb = container_of(xendev, struct XenFB, c.xendev);
|
||||
struct xenfb_page *fb_page;
|
||||
|
@ -912,7 +912,7 @@ static int fb_initialise(struct XenDevice *xendev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static void fb_disconnect(struct XenDevice *xendev)
|
||||
static void fb_disconnect(struct XenLegacyDevice *xendev)
|
||||
{
|
||||
struct XenFB *fb = container_of(xendev, struct XenFB, c.xendev);
|
||||
|
||||
|
@ -935,7 +935,8 @@ static void fb_disconnect(struct XenDevice *xendev)
|
|||
fb->bug_trigger = 0;
|
||||
}
|
||||
|
||||
static void fb_frontend_changed(struct XenDevice *xendev, const char *node)
|
||||
static void fb_frontend_changed(struct XenLegacyDevice *xendev,
|
||||
const char *node)
|
||||
{
|
||||
struct XenFB *fb = container_of(xendev, struct XenFB, c.xendev);
|
||||
|
||||
|
@ -953,7 +954,7 @@ static void fb_frontend_changed(struct XenDevice *xendev, const char *node)
|
|||
}
|
||||
}
|
||||
|
||||
static void fb_event(struct XenDevice *xendev)
|
||||
static void fb_event(struct XenLegacyDevice *xendev)
|
||||
{
|
||||
struct XenFB *xenfb = container_of(xendev, struct XenFB, c.xendev);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue