2 * Copyright (c) 2008, 2009 Michael Shalayeff
3 * Copyright (c) 2009, 2010 Hans-Joerg Hoexer
6 * Permission to use, copy, modify, and distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER IN
15 * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
16 * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
30 int (*sc_init)(struct tpm_softc *, int, const char *);
31 int (*sc_start)(struct tpm_softc *, int);
32 int (*sc_read)(struct tpm_softc *, void *, int, size_t *, int);
33 int (*sc_write)(struct tpm_softc *, void *, int);
34 int (*sc_end)(struct tpm_softc *, int, int);
36 bus_space_tag_t sc_bt, sc_batm;
37 bus_space_handle_t sc_bh, sc_bahm;
42 u_int32_t sc_capabilities;
45 #define TPM_OPEN 0x0001
51 struct resource *mem_res, *irq_res;
61 int tpm_tis12_probe(bus_space_tag_t iot, bus_space_handle_t ioh);
62 int tpm_attach(device_t dev);
63 int tpm_detach(device_t dev);
64 int tpm_suspend(device_t dev);
65 int tpm_resume(device_t dev);