wmlcd.c (3bee0c11) wmlcd.c (beecddb6)
1/* $NetBSD: wmlcd.c,v 1.2 2021/04/24 23:36:32 thorpej Exp $ */
1/* $NetBSD: wmlcd.c,v 1.3 2021/08/07 16:18:48 thorpej Exp $ */
2/*
3 * Copyright (c) 2013 KIYOHARA Takashi
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 * 1. Redistributions of source code must retain the above copyright

--- 10 unchanged lines hidden (view full) ---

20 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
21 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
23 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
24 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25 * POSSIBILITY OF SUCH DAMAGE.
26 */
27#include <sys/cdefs.h>
2/*
3 * Copyright (c) 2013 KIYOHARA Takashi
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 * 1. Redistributions of source code must retain the above copyright

--- 10 unchanged lines hidden (view full) ---

20 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
21 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
23 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
24 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25 * POSSIBILITY OF SUCH DAMAGE.
26 */
27#include <sys/cdefs.h>
28__KERNEL_RCSID(0, "$NetBSD: wmlcd.c,v 1.2 2021/04/24 23:36:32 thorpej Exp $");
28__KERNEL_RCSID(0, "$NetBSD: wmlcd.c,v 1.3 2021/08/07 16:18:48 thorpej Exp $");
29
30#include "rnd.h"
31
32#include <sys/param.h>
33#include <sys/bus.h>
34#include <sys/device.h>
35#include <sys/errno.h>
36

--- 186 unchanged lines hidden (view full) ---

223 defattr);
224 }
225
226 waa.console = is_console;
227 waa.scrdata = &wmlcd_screen_list;
228 waa.accessops = &wmlcd_accessops;
229 waa.accesscookie = sc;
230
29
30#include "rnd.h"
31
32#include <sys/param.h>
33#include <sys/bus.h>
34#include <sys/device.h>
35#include <sys/errno.h>
36

--- 186 unchanged lines hidden (view full) ---

223 defattr);
224 }
225
226 waa.console = is_console;
227 waa.scrdata = &wmlcd_screen_list;
228 waa.accessops = &wmlcd_accessops;
229 waa.accesscookie = sc;
230
231 config_found(self, &waa, wsemuldisplaydevprint, CFARG_EOL);
231 config_found(self, &waa, wsemuldisplaydevprint, CFARGS_NONE);
232}
233
234static int
235wmlcd_ioctl(void *v, void *vs, u_long cmd, void *data, int flag, struct lwp *l)
236{
237 struct wmlcd_softc *sc = v;
238 struct wsdisplay_fbinfo *wsdisp_info;
239

--- 76 unchanged lines hidden ---
232}
233
234static int
235wmlcd_ioctl(void *v, void *vs, u_long cmd, void *data, int flag, struct lwp *l)
236{
237 struct wmlcd_softc *sc = v;
238 struct wsdisplay_fbinfo *wsdisp_info;
239

--- 76 unchanged lines hidden ---