Deleted Added
full compact
sec.c (193579) sec.c (194101)
1/*-
2 * Copyright (C) 2008-2009 Semihalf, Piotr Ziecik
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 * 1. Redistributions of source code must retain the above copyright

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

24 */
25
26/*
27 * Freescale integrated Security Engine (SEC) driver. Currently SEC 2.0 and
28 * 3.0 are supported.
29 */
30
31#include <sys/cdefs.h>
1/*-
2 * Copyright (C) 2008-2009 Semihalf, Piotr Ziecik
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 * 1. Redistributions of source code must retain the above copyright

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

24 */
25
26/*
27 * Freescale integrated Security Engine (SEC) driver. Currently SEC 2.0 and
28 * 3.0 are supported.
29 */
30
31#include <sys/cdefs.h>
32__FBSDID("$FreeBSD: head/sys/dev/sec/sec.c 193579 2009-06-06 09:37:55Z raj $");
32__FBSDID("$FreeBSD: head/sys/dev/sec/sec.c 194101 2009-06-13 08:57:04Z raj $");
33
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/bus.h>
37#include <sys/endian.h>
38#include <sys/kernel.h>
39#include <sys/lock.h>
40#include <sys/malloc.h>

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

53
54#include <dev/sec/sec.h>
55
56static int sec_probe(device_t dev);
57static int sec_attach(device_t dev);
58static int sec_detach(device_t dev);
59static int sec_suspend(device_t dev);
60static int sec_resume(device_t dev);
33
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/bus.h>
37#include <sys/endian.h>
38#include <sys/kernel.h>
39#include <sys/lock.h>
40#include <sys/malloc.h>

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

53
54#include <dev/sec/sec.h>
55
56static int sec_probe(device_t dev);
57static int sec_attach(device_t dev);
58static int sec_detach(device_t dev);
59static int sec_suspend(device_t dev);
60static int sec_resume(device_t dev);
61static void sec_shutdown(device_t dev);
61static int sec_shutdown(device_t dev);
62static void sec_primary_intr(void *arg);
63static void sec_secondary_intr(void *arg);
64static int sec_setup_intr(struct sec_softc *sc, struct resource **ires,
65 void **ihand, int *irid, driver_intr_t handler, const char *iname);
66static void sec_release_intr(struct sec_softc *sc, struct resource *ires,
67 void *ihand, int irid, const char *iname);
68static int sec_controller_reset(struct sec_softc *sc);
69static int sec_channel_reset(struct sec_softc *sc, int channel, int full);

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

495
496static int
497sec_resume(device_t dev)
498{
499
500 return (0);
501}
502
62static void sec_primary_intr(void *arg);
63static void sec_secondary_intr(void *arg);
64static int sec_setup_intr(struct sec_softc *sc, struct resource **ires,
65 void **ihand, int *irid, driver_intr_t handler, const char *iname);
66static void sec_release_intr(struct sec_softc *sc, struct resource *ires,
67 void *ihand, int irid, const char *iname);
68static int sec_controller_reset(struct sec_softc *sc);
69static int sec_channel_reset(struct sec_softc *sc, int channel, int full);

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

495
496static int
497sec_resume(device_t dev)
498{
499
500 return (0);
501}
502
503static void
503static int
504sec_shutdown(device_t dev)
505{
504sec_shutdown(device_t dev)
505{
506
507 return (0);
506}
507
508static int
509sec_setup_intr(struct sec_softc *sc, struct resource **ires, void **ihand,
510 int *irid, driver_intr_t handler, const char *iname)
511{
512 int error;
513

--- 1362 unchanged lines hidden ---
508}
509
510static int
511sec_setup_intr(struct sec_softc *sc, struct resource **ires, void **ihand,
512 int *irid, driver_intr_t handler, const char *iname)
513{
514 int error;
515

--- 1362 unchanged lines hidden ---