proto.h (284079) | proto.h (285707) |
---|---|
1/*- | 1/*- |
2 * Copyright (c) 2014 Marcel Moolenaar | 2 * Copyright (c) 2014, 2015 Marcel Moolenaar |
3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 9 * 1. Redistributions of source code must retain the above copyright 10 * notice, this list of conditions and the following disclaimer. --- 7 unchanged lines hidden (view full) --- 18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * | 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 9 * 1. Redistributions of source code must retain the above copyright 10 * notice, this list of conditions and the following disclaimer. --- 7 unchanged lines hidden (view full) --- 18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/dev/proto/proto.h 284079 2015-06-06 16:09:25Z marcel $ | 26 * $FreeBSD: head/sys/dev/proto/proto.h 285707 2015-07-19 23:37:45Z marcel $ |
27 */ 28 29#ifndef _DEV_PROTO_H_ 30#define _DEV_PROTO_H_ 31 32#define PROTO_RES_MAX 16 33 34#define PROTO_RES_UNUSED 0 --- 21 unchanged lines hidden (view full) --- 56 int sc_rescnt; 57}; 58 59extern devclass_t proto_devclass; 60extern char proto_driver_name[]; 61 62int proto_add_resource(struct proto_softc *, int, int, struct resource *); 63 | 27 */ 28 29#ifndef _DEV_PROTO_H_ 30#define _DEV_PROTO_H_ 31 32#define PROTO_RES_MAX 16 33 34#define PROTO_RES_UNUSED 0 --- 21 unchanged lines hidden (view full) --- 56 int sc_rescnt; 57}; 58 59extern devclass_t proto_devclass; 60extern char proto_driver_name[]; 61 62int proto_add_resource(struct proto_softc *, int, int, struct resource *); 63 |
64int proto_probe(device_t dev, const char *prefix, char ***devnamesp); |
|
64int proto_attach(device_t dev); 65int proto_detach(device_t dev); 66 67#endif /* _DEV_PROTO_H_ */ | 65int proto_attach(device_t dev); 66int proto_detach(device_t dev); 67 68#endif /* _DEV_PROTO_H_ */ |