Skip to contentSkip to conversation

fbdev: add connector entries for uvesafb

PATCH In review Michal Januszewski 3 participants 3 messages Jun 23, 2007 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 2/4 fbdev: add connector entries for uvesafb

Add connector's idx and val constants for v86d and uvesafb.

Also change the maximum message size to 4k to allow transfers of VBE data blocks from userspace.

---
include/linux/connector.h | 7 ++++---

 1 files changed, 4 insertions(+), 3 deletions(-)
include/linux/connector.h +4 -3
index 10eb56b..46b2aba 100644
@@ -36,14 +36,15 @@
 #define CN_VAL_CIFS                     0x1
 #define CN_W1_IDX			0x3	/* w1 communication */
 #define CN_W1_VAL			0x1
+#define CN_IDX_V86D			0x4
+#define CN_VAL_V86D_UVESAFB		0x1
 
-
-#define CN_NETLINK_USERS		4
+#define CN_NETLINK_USERS		5
 
 /*
  * Maximum connector's message size.
  */
-#define CONNECTOR_MAX_MSG_SIZE 	1024
+#define CONNECTOR_MAX_MSG_SIZE 	4096
 
 /*
  * idx and val are unique identifiers which 

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

#1 lore raw
Quoted 25 lines · On Sat, 23 Jun 2007 12:51:46 +0200 Michal Januszewski <[email protected]> wrote:

Add connector's idx and val constants for v86d and uvesafb.

Also change the maximum message size to 4k to allow transfers of VBE data blocks from userspace.

---
include/linux/connector.h | 7 ++++---

 1 files changed, 4 insertions(+), 3 deletions(-)
include/linux/connector.h +2 -2
index 10eb56b..46b2aba 100644
@@ -36,14 +36,15 @@
 #define CN_VAL_CIFS                     0x1
 #define CN_W1_IDX			0x3	/* w1 communication */
 #define CN_W1_VAL			0x1
+#define CN_IDX_V86D			0x4
+#define CN_VAL_V86D_UVESAFB		0x1
 
-
-#define CN_NETLINK_USERS		4

include/linux/connector.h line 50

Quoted 10 lines
include/linux/connector.h +2 -1
+#define CN_NETLINK_USERS		5
 
 /*
  * Maximum connector's message size.
  */
-#define CONNECTOR_MAX_MSG_SIZE 	1024
+#define CONNECTOR_MAX_MSG_SIZE 	4096
 
 /*
  * idx and val are unique identifiers which 

Evgeniy, could you please review this?

The need to add these enumerations for unrelated subsystems to connector.h may get a bit ugly as time passes, but I guess it's OK for now.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

#2 lore raw
Quoted 40 lines · Andrew Morton
Quoted 25 lines · On Sat, 23 Jun 2007 12:51:46 +0200 Michal Januszewski <[email protected]> wrote:

Add connector's idx and val constants for v86d and uvesafb.

Also change the maximum message size to 4k to allow transfers of VBE data blocks from userspace.

---
include/linux/connector.h | 7 ++++---

 1 files changed, 4 insertions(+), 3 deletions(-)
include/linux/connector.h +2 -2
index 10eb56b..46b2aba 100644
@@ -36,14 +36,15 @@
 #define CN_VAL_CIFS                     0x1
 #define CN_W1_IDX			0x3	/* w1 communication */
 #define CN_W1_VAL			0x1
+#define CN_IDX_V86D			0x4
+#define CN_VAL_V86D_UVESAFB		0x1
 
-
-#define CN_NETLINK_USERS		4

include/linux/connector.h line 50

Quoted 10 lines
include/linux/connector.h +2 -1
+#define CN_NETLINK_USERS		5
 
 /*
  * Maximum connector's message size.
  */
-#define CONNECTOR_MAX_MSG_SIZE 	1024
+#define CONNECTOR_MAX_MSG_SIZE 	4096
 
 /*
  * idx and val are unique identifiers which 

Evgeniy, could you please review this?

Quoted 2 lines

The need to add these enumerations for unrelated subsystems to connector.h may get a bit ugly as time passes, but I guess it's OK for now.

Hi.

I have no problem with the patch, although it could be possible to split patch to two - add id and increase the size, but it is too minor nit.

Ack.

Signature · 1 line
	Evgeniy Polyakov