Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys Add some headers for region code support (RPC), whic...



details:   https://anonhg.NetBSD.org/src/rev/cf5969a0bc89
branches:  trunk
changeset: 519025:cf5969a0bc89
user:      veego <veego%NetBSD.org@localhost>
date:      Sun Dec 09 22:54:51 2001 +0000

description:
Add some headers for region code support (RPC), which will be added in the
next commit of sys/dev/scsipi/cd.c.

diffstat:

 sys/sys/dvdio.h |  31 ++++++++++++++++++++++++++++++-
 1 files changed, 30 insertions(+), 1 deletions(-)

diffs (57 lines):

diff -r 02a5e7723309 -r cf5969a0bc89 sys/sys/dvdio.h
--- a/sys/sys/dvdio.h   Sun Dec 09 22:53:30 2001 +0000
+++ b/sys/sys/dvdio.h   Sun Dec 09 22:54:51 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dvdio.h,v 1.4 2001/01/08 08:37:12 enami Exp $  */
+/*     $NetBSD: dvdio.h,v 1.5 2001/12/09 22:54:51 veego Exp $  */
 
 #include <sys/types.h>
 #include <sys/ioccom.h>
@@ -101,6 +101,8 @@
 #define DVD_LU_SEND_TITLE_KEY  7
 #define DVD_LU_SEND_ASF                8
 #define DVD_INVALIDATE_AGID    9
+#define DVD_LU_SEND_RPC_STATE  10
+#define DVD_HOST_SEND_RPC_STATE        11
 
 /* State data */
 typedef u_int8_t dvd_key[5];           /* 40-bit value, MSB is first elem. */
@@ -160,6 +162,19 @@
        unsigned asf            : 1;
 };
 
+struct dvd_host_send_rpcstate {
+       u_int8_t type;
+       u_int8_t pdrc;
+};
+ 
+struct dvd_lu_send_rpcstate {
+       u_int8_t type           : 2;
+       u_int8_t vra            : 3;
+       u_int8_t ucca           : 3;
+       u_int8_t region_mask;
+       u_int8_t rpc_scheme;
+};
+
 typedef union {
        u_int8_t type;
 
@@ -170,4 +185,18 @@
        struct dvd_send_key             hsk;
        struct dvd_lu_send_title_key    lstk;
        struct dvd_lu_send_asf          lsasf;
+       struct dvd_host_send_rpcstate   hrpcs;
+       struct dvd_lu_send_rpcstate     lrpcs;
 } dvd_authinfo;
+
+typedef struct {
+       u_int16_t report_key_length;
+       u_int8_t reserved1[2];                 
+       u_int8_t ucca           : 3;
+       u_int8_t vra            : 3;
+       u_int8_t type_code      : 2;
+       u_int8_t region_mask;
+       u_int8_t rpc_scheme;
+       u_int8_t reserved2;
+} dvd_rpc_state_t;
+



Home | Main Index | Thread Index | Old Index