tpm_ibmvtpm.c (775585e47cd6b5eddf814d53b117b56a1a171553) tpm_ibmvtpm.c (1f866057291fc00f14e4962473bd7724ffa8f578)
1/*
2 * Copyright (C) 2012 IBM Corporation
3 *
4 * Author: Ashley Lai <adlai@us.ibm.com>
5 *
6 * Maintained by: <tpmdd-devel@lists.sourceforge.net>
7 *
8 * Device driver for TCG/TCPA TPM (trusted platform module).

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

393
394 rc = ibmvtpm_crq_send_init(ibmvtpm);
395 if (rc)
396 dev_err(dev, "Error send_init rc=%d\n", rc);
397
398 return rc;
399}
400
1/*
2 * Copyright (C) 2012 IBM Corporation
3 *
4 * Author: Ashley Lai <adlai@us.ibm.com>
5 *
6 * Maintained by: <tpmdd-devel@lists.sourceforge.net>
7 *
8 * Device driver for TCG/TCPA TPM (trusted platform module).

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

393
394 rc = ibmvtpm_crq_send_init(ibmvtpm);
395 if (rc)
396 dev_err(dev, "Error send_init rc=%d\n", rc);
397
398 return rc;
399}
400
401static bool tpm_ibmvtpm_req_canceled(struct tpm_chip *chip, u8 status)
402{
403 return (status == 0);
404}
405
401static const struct file_operations ibmvtpm_ops = {
402 .owner = THIS_MODULE,
403 .llseek = no_llseek,
404 .open = tpm_open,
405 .read = tpm_read,
406 .write = tpm_write,
407 .release = tpm_release,
408};

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

436
437static const struct tpm_vendor_specific tpm_ibmvtpm = {
438 .recv = tpm_ibmvtpm_recv,
439 .send = tpm_ibmvtpm_send,
440 .cancel = tpm_ibmvtpm_cancel,
441 .status = tpm_ibmvtpm_status,
442 .req_complete_mask = 0,
443 .req_complete_val = 0,
406static const struct file_operations ibmvtpm_ops = {
407 .owner = THIS_MODULE,
408 .llseek = no_llseek,
409 .open = tpm_open,
410 .read = tpm_read,
411 .write = tpm_write,
412 .release = tpm_release,
413};

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

441
442static const struct tpm_vendor_specific tpm_ibmvtpm = {
443 .recv = tpm_ibmvtpm_recv,
444 .send = tpm_ibmvtpm_send,
445 .cancel = tpm_ibmvtpm_cancel,
446 .status = tpm_ibmvtpm_status,
447 .req_complete_mask = 0,
448 .req_complete_val = 0,
444 .req_canceled = 0,
449 .req_canceled = tpm_ibmvtpm_req_canceled,
445 .attr_group = &ibmvtpm_attr_grp,
446 .miscdev = { .fops = &ibmvtpm_ops, },
447};
448
449static const struct dev_pm_ops tpm_ibmvtpm_pm_ops = {
450 .suspend = tpm_ibmvtpm_suspend,
451 .resume = tpm_ibmvtpm_resume,
452};

--- 272 unchanged lines hidden ---
450 .attr_group = &ibmvtpm_attr_grp,
451 .miscdev = { .fops = &ibmvtpm_ops, },
452};
453
454static const struct dev_pm_ops tpm_ibmvtpm_pm_ops = {
455 .suspend = tpm_ibmvtpm_suspend,
456 .resume = tpm_ibmvtpm_resume,
457};

--- 272 unchanged lines hidden ---