]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - include/asm-powerpc/iseries/vio.h
[POWERPC] iseries: A new iSeries console
[karo-tx-linux.git] / include / asm-powerpc / iseries / vio.h
index 7e3a469420ddbd7e7592749bd7d7f54f4c3909d6..7a95d296abd12201a0e75dff0d228c14a2770bbc 100644 (file)
@@ -1,5 +1,4 @@
 /* -*- linux-c -*-
- *  drivers/char/vio.h
  *
  *  iSeries Virtual I/O Message Path header
  *
@@ -123,6 +122,34 @@ enum viorc {
        viorc_openRejected = 0x0301
 };
 
+/*
+ * The structure of the events that flow between us and OS/400 for chario
+ * events.  You can't mess with this unless the OS/400 side changes too.
+ */
+struct viocharlpevent {
+       struct HvLpEvent event;
+       u32 reserved;
+       u16 version;
+       u16 subtype_result_code;
+       u8 virtual_device;
+       u8 len;
+       u8 data[VIOCHAR_MAX_DATA];
+};
+
+#define VIOCHAR_WINDOW         10
+
+enum viocharsubtype {
+       viocharopen = 0x0001,
+       viocharclose = 0x0002,
+       viochardata = 0x0003,
+       viocharack = 0x0004,
+       viocharconfig = 0x0005
+};
+
+enum viochar_rc {
+       viochar_rc_ebusy = 1
+};
+
 struct device;
 
 extern struct device *iSeries_vio_dev;