Sat Jun 11 13:52:46 2011 UTC ()
Added LCD-8000UD-DVI entry.


(nonaka)
diff -r1.3 -r1.4 src/sys/dev/usb/udl.c

cvs diff -r1.3 -r1.4 src/sys/dev/usb/udl.c (expand / switch to unified diff)

--- src/sys/dev/usb/udl.c 2010/04/11 13:57:22 1.3
+++ src/sys/dev/usb/udl.c 2011/06/11 13:52:46 1.4
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: udl.c,v 1.3 2010/04/11 13:57:22 drochner Exp $ */ 1/* $NetBSD: udl.c,v 1.4 2011/06/11 13:52:46 nonaka Exp $ */
2 2
3/*- 3/*-
4 * Copyright (c) 2009 FUKAUMI Naoki. 4 * Copyright (c) 2009 FUKAUMI Naoki.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer. 11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright 12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the 13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution. 14 * documentation and/or other materials provided with the distribution.
@@ -43,27 +43,27 @@ @@ -43,27 +43,27 @@
43 43
44/* 44/*
45 * Driver for the ``DisplayLink DL-1x0 / DL-1x5'' graphic chips based 45 * Driver for the ``DisplayLink DL-1x0 / DL-1x5'' graphic chips based
46 * on the reversed engineered specifications of Florian Echtler 46 * on the reversed engineered specifications of Florian Echtler
47 * <floe at butterbrot dot org>: 47 * <floe at butterbrot dot org>:
48 * 48 *
49 * http://floe.butterbrot.org/displaylink/doku.php 49 * http://floe.butterbrot.org/displaylink/doku.php
50 * 50 *
51 * This driver was written by Marcus Glocker for OpenBSD and ported to 51 * This driver was written by Marcus Glocker for OpenBSD and ported to
52 * NetBSD by FUKAUMI Naoki with many modification. 52 * NetBSD by FUKAUMI Naoki with many modification.
53 */ 53 */
54 54
55#include <sys/cdefs.h> 55#include <sys/cdefs.h>
56__KERNEL_RCSID(0, "$NetBSD: udl.c,v 1.3 2010/04/11 13:57:22 drochner Exp $"); 56__KERNEL_RCSID(0, "$NetBSD: udl.c,v 1.4 2011/06/11 13:52:46 nonaka Exp $");
57 57
58#include <sys/param.h> 58#include <sys/param.h>
59#include <sys/device.h> 59#include <sys/device.h>
60#include <sys/kernel.h> 60#include <sys/kernel.h>
61#include <sys/proc.h> 61#include <sys/proc.h>
62#include <sys/systm.h> 62#include <sys/systm.h>
63#include <sys/kmem.h> 63#include <sys/kmem.h>
64#include <uvm/uvm.h> 64#include <uvm/uvm.h>
65 65
66#include <sys/bus.h> 66#include <sys/bus.h>
67#include <sys/endian.h> 67#include <sys/endian.h>
68 68
69#include <dev/usb/usb.h> 69#include <dev/usb/usb.h>
@@ -304,26 +304,27 @@ static const struct usb_devno udl_devs[] @@ -304,26 +304,27 @@ static const struct usb_devno udl_devs[]
304 { USB_VENDOR_DISPLAYLINK, USB_PRODUCT_DISPLAYLINK_VCUD60 }, 304 { USB_VENDOR_DISPLAYLINK, USB_PRODUCT_DISPLAYLINK_VCUD60 },
305 { USB_VENDOR_DISPLAYLINK, USB_PRODUCT_DISPLAYLINK_DLDVI }, 305 { USB_VENDOR_DISPLAYLINK, USB_PRODUCT_DISPLAYLINK_DLDVI },
306 { USB_VENDOR_DISPLAYLINK, USB_PRODUCT_DISPLAYLINK_USBRGB }, 306 { USB_VENDOR_DISPLAYLINK, USB_PRODUCT_DISPLAYLINK_USBRGB },
307 { USB_VENDOR_DISPLAYLINK, USB_PRODUCT_DISPLAYLINK_LCDUSB7X }, 307 { USB_VENDOR_DISPLAYLINK, USB_PRODUCT_DISPLAYLINK_LCDUSB7X },
308 { USB_VENDOR_DISPLAYLINK, USB_PRODUCT_DISPLAYLINK_VGA10 }, 308 { USB_VENDOR_DISPLAYLINK, USB_PRODUCT_DISPLAYLINK_VGA10 },
309 { USB_VENDOR_DISPLAYLINK, USB_PRODUCT_DISPLAYLINK_WSDVI }, 309 { USB_VENDOR_DISPLAYLINK, USB_PRODUCT_DISPLAYLINK_WSDVI },
310 { USB_VENDOR_DISPLAYLINK, USB_PRODUCT_DISPLAYLINK_EC008 }, 310 { USB_VENDOR_DISPLAYLINK, USB_PRODUCT_DISPLAYLINK_EC008 },
311 { USB_VENDOR_DISPLAYLINK, USB_PRODUCT_DISPLAYLINK_GXDVIU2 }, 311 { USB_VENDOR_DISPLAYLINK, USB_PRODUCT_DISPLAYLINK_GXDVIU2 },
312 { USB_VENDOR_DISPLAYLINK, USB_PRODUCT_DISPLAYLINK_LCD4300U }, 312 { USB_VENDOR_DISPLAYLINK, USB_PRODUCT_DISPLAYLINK_LCD4300U },
313 { USB_VENDOR_DISPLAYLINK, USB_PRODUCT_DISPLAYLINK_LCD8000U }, 313 { USB_VENDOR_DISPLAYLINK, USB_PRODUCT_DISPLAYLINK_LCD8000U },
314 { USB_VENDOR_DISPLAYLINK, USB_PRODUCT_DISPLAYLINK_HPDOCK }, 314 { USB_VENDOR_DISPLAYLINK, USB_PRODUCT_DISPLAYLINK_HPDOCK },
315 { USB_VENDOR_DISPLAYLINK, USB_PRODUCT_DISPLAYLINK_M01061 }, 315 { USB_VENDOR_DISPLAYLINK, USB_PRODUCT_DISPLAYLINK_M01061 },
316 { USB_VENDOR_DISPLAYLINK, USB_PRODUCT_DISPLAYLINK_SWDVI }, 316 { USB_VENDOR_DISPLAYLINK, USB_PRODUCT_DISPLAYLINK_SWDVI },
 317 { USB_VENDOR_DISPLAYLINK, USB_PRODUCT_DISPLAYLINK_LCD8000UD_DVI },
317 { USB_VENDOR_DISPLAYLINK, USB_PRODUCT_DISPLAYLINK_LDEWX015U }, 318 { USB_VENDOR_DISPLAYLINK, USB_PRODUCT_DISPLAYLINK_LDEWX015U },
318 { USB_VENDOR_DISPLAYLINK, USB_PRODUCT_DISPLAYLINK_UM7X0 } 319 { USB_VENDOR_DISPLAYLINK, USB_PRODUCT_DISPLAYLINK_UM7X0 }
319}; 320};
320 321
321static int 322static int
322udl_match(device_t parent, cfdata_t match, void *aux) 323udl_match(device_t parent, cfdata_t match, void *aux)
323{ 324{
324 struct usb_attach_arg *uaa = aux; 325 struct usb_attach_arg *uaa = aux;
325 326
326 if (usb_lookup(udl_devs, uaa->vendor, uaa->product) != NULL) 327 if (usb_lookup(udl_devs, uaa->vendor, uaa->product) != NULL)
327 return UMATCH_VENDOR_PRODUCT; 328 return UMATCH_VENDOR_PRODUCT;
328 329
329 return UMATCH_NONE; 330 return UMATCH_NONE;