tpm_nsc.c (3122a88a242454efe72930e56a3e4d56ee534f3c) tpm_nsc.c (6659ca2ab6730c3bbb9fa495f2327b95b955decd)
1/*
2 * Copyright (C) 2004 IBM Corporation
3 *
4 * Authors:
5 * Leendert van Doorn <leendert@watson.ibm.com>
6 * Dave Safford <safford@watson.ibm.com>
7 * Reiner Sailer <sailer@watson.ibm.com>
8 * Kylene Hall <kjhall@us.ibm.com>

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

219 .owner = THIS_MODULE,
220 .llseek = no_llseek,
221 .open = tpm_open,
222 .read = tpm_read,
223 .write = tpm_write,
224 .release = tpm_release,
225};
226
1/*
2 * Copyright (C) 2004 IBM Corporation
3 *
4 * Authors:
5 * Leendert van Doorn <leendert@watson.ibm.com>
6 * Dave Safford <safford@watson.ibm.com>
7 * Reiner Sailer <sailer@watson.ibm.com>
8 * Kylene Hall <kjhall@us.ibm.com>

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

219 .owner = THIS_MODULE,
220 .llseek = no_llseek,
221 .open = tpm_open,
222 .read = tpm_read,
223 .write = tpm_write,
224 .release = tpm_release,
225};
226
227static DEVICE_ATTR(pubek, S_IRUGO, tpm_show_pubek, NULL);
228static DEVICE_ATTR(pcrs, S_IRUGO, tpm_show_pcrs, NULL);
229static DEVICE_ATTR(caps, S_IRUGO, tpm_show_caps, NULL);
230static DEVICE_ATTR(cancel, S_IWUSR|S_IWGRP, NULL, tpm_store_cancel);
231
232static struct attribute * nsc_attrs[] = {
233 &dev_attr_pubek.attr,
234 &dev_attr_pcrs.attr,
235 &dev_attr_caps.attr,
236 &dev_attr_cancel.attr,
237 0,
238};
239
240static struct attribute_group nsc_attr_grp = { .attrs = nsc_attrs };
241
227static struct tpm_vendor_specific tpm_nsc = {
228 .recv = tpm_nsc_recv,
229 .send = tpm_nsc_send,
230 .cancel = tpm_nsc_cancel,
231 .req_complete_mask = NSC_STATUS_OBF,
232 .req_complete_val = NSC_STATUS_OBF,
233 .base = TPM_NSC_BASE,
242static struct tpm_vendor_specific tpm_nsc = {
243 .recv = tpm_nsc_recv,
244 .send = tpm_nsc_send,
245 .cancel = tpm_nsc_cancel,
246 .req_complete_mask = NSC_STATUS_OBF,
247 .req_complete_val = NSC_STATUS_OBF,
248 .base = TPM_NSC_BASE,
249 .attr_group = &nsc_attr_grp,
234 .miscdev = { .fops = &nsc_ops, },
250 .miscdev = { .fops = &nsc_ops, },
235
236};
237
238static int __devinit tpm_nsc_init(struct pci_dev *pci_dev,
239 const struct pci_device_id *pci_id)
240{
241 int rc = 0;
242
243 if (pci_enable_device(pci_dev))

--- 126 unchanged lines hidden ---
251};
252
253static int __devinit tpm_nsc_init(struct pci_dev *pci_dev,
254 const struct pci_device_id *pci_id)
255{
256 int rc = 0;
257
258 if (pci_enable_device(pci_dev))

--- 126 unchanged lines hidden ---