Deleted Added
full compact
ncr53c500_pccard.c (119418) ncr53c500_pccard.c (121521)
1/* $NecBSD: ncr53c500_pisa.c,v 1.28 1998/11/26 01:59:11 honda Exp $ */
2/* $NetBSD$ */
3
4/*
5 * [Ported for FreeBSD]
6 * Copyright (c) 2000
7 * Noriaki Mitsunaga, Mitsuru Iwasaki and Takanori Watanabe.
8 * All rights reserved.

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

32 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
34 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
35 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 * POSSIBILITY OF SUCH DAMAGE.
37 */
38
39#include <sys/cdefs.h>
1/* $NecBSD: ncr53c500_pisa.c,v 1.28 1998/11/26 01:59:11 honda Exp $ */
2/* $NetBSD$ */
3
4/*
5 * [Ported for FreeBSD]
6 * Copyright (c) 2000
7 * Noriaki Mitsunaga, Mitsuru Iwasaki and Takanori Watanabe.
8 * All rights reserved.

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

32 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
34 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
35 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 * POSSIBILITY OF SUCH DAMAGE.
37 */
38
39#include <sys/cdefs.h>
40__FBSDID("$FreeBSD: head/sys/dev/ncv/ncr53c500_pccard.c 119418 2003-08-24 17:55:58Z obrien $");
40__FBSDID("$FreeBSD: head/sys/dev/ncv/ncr53c500_pccard.c 121521 2003-10-26 00:51:40Z imp $");
41
42#include <sys/param.h>
43#include <sys/systm.h>
44#include <sys/malloc.h>
45#include <sys/errno.h>
46
47#include <machine/bus.h>
48#include <machine/bus_pio.h>

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

201 }
202
203 return(0);
204}
205
206static int ncv_pccard_match(device_t dev)
207{
208 const struct ncv_product *pp;
41
42#include <sys/param.h>
43#include <sys/systm.h>
44#include <sys/malloc.h>
45#include <sys/errno.h>
46
47#include <machine/bus.h>
48#include <machine/bus_pio.h>

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

201 }
202
203 return(0);
204}
205
206static int ncv_pccard_match(device_t dev)
207{
208 const struct ncv_product *pp;
209 char *vendorstr;
210 char *prodstr;
209 const char *vendorstr;
210 const char *prodstr;
211
212 if ((pp = (const struct ncv_product *) pccard_product_lookup(dev,
213 (const struct pccard_product *) ncv_products,
214 sizeof(ncv_products[0]), NULL)) != NULL) {
215 if (pp->prod.pp_name != NULL)
216 device_set_desc(dev, pp->prod.pp_name);
217 device_set_flags(dev, pp->flags);
218 return(0);

--- 152 unchanged lines hidden ---
211
212 if ((pp = (const struct ncv_product *) pccard_product_lookup(dev,
213 (const struct pccard_product *) ncv_products,
214 sizeof(ncv_products[0]), NULL)) != NULL) {
215 if (pp->prod.pp_name != NULL)
216 device_set_desc(dev, pp->prod.pp_name);
217 device_set_flags(dev, pp->flags);
218 return(0);

--- 152 unchanged lines hidden ---