Commit Graph

32 Commits

Author SHA1 Message Date
Gerd Hoffmann
445a96d029 make unstable qxl compatible with 0.4 qxl
Add SET_MODE IO port back in.
Add QXLRom offset fields back in.

I/O ports, RAM and ROM layout are binary compatible now.

With these changes merged it should be possible to create *one* qxl
device which supports *both* 0.4 and unstable spice commands.

Everything the guest touches before entering native mode is binary
compatible.  Old (0.4) guests drivers enter native mode via SET_MODE,
new (unstqable) guest drivers enter native mode using CREATE_PRIMARY,
so when we see spice commands from the guest come in we know
whenever we have to interpret them as 0.4 or unstable ones.

Added commends to structs which need care wrt. compatibility when
updating.

Added some QXLCompat* structs for the 0.4 struct versions.

Added a flags field to QXLCommandEx so qxl can signal whenever commands
are compat or not.

Moved QXLRom->n_surfaces to make QXLRom->flags 64bit aligned.

Add padding to QXLRom to ensure future elements are 32bit aligned.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2010-04-26 15:48:54 +02:00
Alexander Larsson
797d4c1ca8 Add source/dest alpha information to AlphaBlend 2010-04-23 11:07:27 +02:00
Alexander Larsson
916f3818d8 Pass format when creating surfaces rather than depth 2010-04-19 15:47:48 +02:00
Alexander Larsson
8ef80db4ac Add some comment describing the bitmap formats 2010-04-19 15:47:43 +02:00
Alexander Larsson
32541ac871 Add surface type enum
This is used to specify how pixels map to colors in surfaces.
2010-04-19 15:46:10 +02:00
Alexander Larsson
f50ca498cc Make pci id be 0x1ff rev 1, for unstable work
We will switch back to 0x101 when things settle down and we guarantee
backwards compatibility. For now we will keep breaking it, bumping
revision each time this happens.
2010-04-06 12:29:52 +02:00
Izik Eidus
98fd8921a9 spice-protocol off screens supports
Signed-off-by: Izik Eidus <ieidus@redhat.com>
2010-04-03 05:41:20 +03:00
Izik Eidus
14db228e81 spice-protocl: add spice_msg_display_surface_create/destroy
protocol commands to create/destroy surface on the client.

i removed spice_msg_display_mode as it now not needed

Signed-off-by: Izik Eidus <ieidus@redhat.com>
2010-04-03 05:40:50 +03:00
Alexander Larsson
d9f01c38ee Bump minor to 3
There is some confusion in the different branches on what the minors
mean. We expect minor == 2 to mean support for
SPICE_MSG_MAIN_MIGRATE_SWITCH_HOST and SpiceMsgMainMigrationBegin
with added public key info. All other additions like tunneling are
for minor 3 (although we might not do a release with minor 3, but
rather the bump major).
2010-03-24 16:11:59 +01:00
Alexander Larsson
a668cb38e2 Add SPICE_MSG_MAIN_MIGRATE_SWITCH_HOST message
This is a simpler form of migration
2010-03-24 16:11:59 +01:00
Alexander Larsson
6314aee92d Use int32, not int in protocol defining structure
"int" is not of a welldefined size, fortunally all existing uses
are 32bit.
2010-03-22 20:25:48 +01:00
Alexander Larsson
cac2bc7984 Add a bunch of generically useful macros
This is largely based on gmacros.h from glib with a few
custom macros that were repeated in the spice codebase.
2010-03-09 11:53:59 +01:00
Alexander Larsson
df85c9d314 Disable warning about our use of pragma pack in include file
Without this we can't build the driver
2010-03-05 16:25:05 +01:00
Alexander Larsson
60178205ad Add includes.sed file to handle include renaming 2010-02-04 18:12:07 +01:00
Alexander Larsson
b49e090269 fix up reames 2010-02-04 18:11:09 +01:00
Alexander Larsson
15359ed269 Fix up SPICE_SPICE typo 2010-02-04 18:10:50 +01:00
Alexander Larsson
fa94dbba3f Add gitignore file 2010-02-04 16:47:32 +01:00
Alexander Larsson
193c54c0da Add autoconf and pkg-config setup 2010-02-04 16:47:27 +01:00
Alexander Larsson
e625b1a1fb Always include using <spice/foo.h> style 2010-02-04 16:47:23 +01:00
Alexander Larsson
966d67a251 Hide internal macros with _SPICE prefix 2010-02-04 16:47:19 +01:00
Alexander Larsson
49fccfefc8 Clean up and standardize header guards 2010-02-04 16:47:14 +01:00
Alexander Larsson
430b3b036d Clean up header names, removing references to "red"
red_error_codes.h -> spice/error_codes.h
 red.h -> spice/protocol.h
 reds_stat.h -> spice/stats.h
2010-02-04 16:47:07 +01:00
Alexander Larsson
90352580a0 Rename all identifiers
This is just the result of running:
./rename-identifiers.sh renames spice/*.h
2010-02-04 16:46:27 +01:00
Alexander Larsson
b0188a46d1 Clean up all network protocol names to start with Spice/SPICE_
This makes use have a consistent namespace for the core network protocol.
The PCI devices each have their own namespaces.
2010-02-04 16:43:24 +01:00
Alexander Larsson
cb5909696b Add utility script to do C identifier renaming 2010-02-04 16:43:24 +01:00
Alexander Larsson
9032d5235b Use <spice/barrier.h> memory barrier 2010-02-04 16:43:24 +01:00
Alexander Larsson
590e21bc57 Add standard memory barrier header 2010-02-04 16:43:24 +01:00
Alexander Larsson
7050ae14a4 Add standard header for structure packing 2010-02-04 16:43:15 +01:00
Alexander Larsson
c2852f6b5f Use spice/types.h and its types
There is a standard for integer types (i.e. uint32_t) which we're using
at some places, but not others. Lets use it everywhere.
2010-02-04 16:40:42 +01:00
Alexander Larsson
a5d25ea987 Add standard header for defining core types
Initially we only do what is necessary to get the stdint types like
uint32_t, etc.
2010-02-04 16:23:31 +01:00
Alexander Larsson
3988329f11 Add MIT style COPYING file 2010-02-04 16:23:24 +01:00
Alexander Larsson
e0f9912933 Import all protocol headers from spice/common 2010-02-04 16:18:44 +01:00