Deleted Added
full compact
pccard.c (86907) pccard.c (87975)
1/* $NetBSD: pcmcia.c,v 1.23 2000/07/28 19:17:02 drochner Exp $ */
1/* $NetBSD: pcmcia.c,v 1.23 2000/07/28 19:17:02 drochner Exp $ */
2/* $FreeBSD: head/sys/dev/pccard/pccard.c 86907 2001-11-26 07:14:00Z imp $ */
2/* $FreeBSD: head/sys/dev/pccard/pccard.c 87975 2001-12-15 05:58:28Z imp $ */
3
4/*
5 * Copyright (c) 1997 Marc Horowitz. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright

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

802
803static int
804pccard_detach(device_t dev)
805{
806 pccard_detach_card(dev, 0);
807 return 0;
808}
809
3
4/*
5 * Copyright (c) 1997 Marc Horowitz. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright

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

802
803static int
804pccard_detach(device_t dev)
805{
806 pccard_detach_card(dev, 0);
807 return 0;
808}
809
810static int
811pccard_suspend(device_t self)
812{
813 pccard_detach_card(self, 0);
814 return (0);
815}
816
817static
818int
819pccard_resume(device_t self)
820{
821 return (0);
822}
823
810static void
811pccard_print_resources(struct resource_list *rl, const char *name, int type,
812 int count, const char *format)
813{
814 struct resource_list_entry *rle;
815 int printed;
816 int i;
817

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

1195}
1196
1197static device_method_t pccard_methods[] = {
1198 /* Device interface */
1199 DEVMETHOD(device_probe, pccard_probe),
1200 DEVMETHOD(device_attach, pccard_attach),
1201 DEVMETHOD(device_detach, pccard_detach),
1202 DEVMETHOD(device_shutdown, bus_generic_shutdown),
824static void
825pccard_print_resources(struct resource_list *rl, const char *name, int type,
826 int count, const char *format)
827{
828 struct resource_list_entry *rle;
829 int printed;
830 int i;
831

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

1209}
1210
1211static device_method_t pccard_methods[] = {
1212 /* Device interface */
1213 DEVMETHOD(device_probe, pccard_probe),
1214 DEVMETHOD(device_attach, pccard_attach),
1215 DEVMETHOD(device_detach, pccard_detach),
1216 DEVMETHOD(device_shutdown, bus_generic_shutdown),
1203 DEVMETHOD(device_suspend, bus_generic_suspend),
1204 DEVMETHOD(device_resume, bus_generic_resume),
1217 DEVMETHOD(device_suspend, pccard_suspend),
1218 DEVMETHOD(device_resume, pccard_resume),
1205
1206 /* Bus interface */
1207 DEVMETHOD(bus_print_child, pccard_print_child),
1208 DEVMETHOD(bus_driver_added, pccard_driver_added),
1209 DEVMETHOD(bus_child_detached, pccard_child_detached),
1210 DEVMETHOD(bus_alloc_resource, pccard_alloc_resource),
1211 DEVMETHOD(bus_release_resource, pccard_release_resource),
1212 DEVMETHOD(bus_activate_resource, bus_generic_activate_resource),

--- 34 unchanged lines hidden ---
1219
1220 /* Bus interface */
1221 DEVMETHOD(bus_print_child, pccard_print_child),
1222 DEVMETHOD(bus_driver_added, pccard_driver_added),
1223 DEVMETHOD(bus_child_detached, pccard_child_detached),
1224 DEVMETHOD(bus_alloc_resource, pccard_alloc_resource),
1225 DEVMETHOD(bus_release_resource, pccard_release_resource),
1226 DEVMETHOD(bus_activate_resource, bus_generic_activate_resource),

--- 34 unchanged lines hidden ---