Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/dreamcast/dev/maple The value of di_connector_direc...



details:   https://anonhg.NetBSD.org/src/rev/279a06f87762
branches:  trunk
changeset: 540205:279a06f87762
user:      itohy <itohy%NetBSD.org@localhost>
date:      Fri Dec 06 15:47:22 2002 +0000

description:
The value of di_connector_direction is 1 for Dreamcast Gun, 0 for
other devices.  It looks like that the value represents the direction
of expansion units (Visual Memory, etc.).
Add definition of the directions.

diffstat:

 sys/arch/dreamcast/dev/maple/maple.h |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 1478a889fda7 -r 279a06f87762 sys/arch/dreamcast/dev/maple/maple.h
--- a/sys/arch/dreamcast/dev/maple/maple.h      Fri Dec 06 15:37:55 2002 +0000
+++ b/sys/arch/dreamcast/dev/maple/maple.h      Fri Dec 06 15:47:22 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: maple.h,v 1.5 2002/11/15 13:30:21 itohy Exp $  */
+/*     $NetBSD: maple.h,v 1.6 2002/12/06 15:47:22 itohy Exp $  */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -115,13 +115,16 @@
        u_int32_t di_func;              /* function code */
        u_int32_t di_function_data[3];  /* function data */
        u_int8_t di_area_code;          /* region settings */
-       u_int8_t di_connector_direction;        /* ? */
+       u_int8_t di_connector_direction; /* direction of expansion connector */
        char di_product_name[30];       /* name of the device */
        char di_product_license[60];    /* manufacturer info */
        u_int16_t di_standby_power;     /* standby power consumption */
        u_int16_t di_max_power;         /* maximum power consumption */
 };
 
+#define MAPLE_CONN_TOP         0       /* connector is to the top */
+#define MAPLE_CONN_BOTTOM      1       /* connector is to the bottom */
+
 struct maple_response {
        u_int32_t       response_code;
        u_int32_t       data[1];        /* variable length */



Home | Main Index | Thread Index | Old Index