linux/drivers/infiniband/hw/hfi1/aspm.c

// SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
/*
 * Copyright(c) 2019 Intel Corporation.
 *
 */

#include "aspm.h"

/* Time after which the timer interrupt will re-enable ASPM */
#define ASPM_TIMER_MS
/* Time for which interrupts are ignored after a timer has been scheduled */
#define ASPM_RESCHED_TIMER_MS
/* Two interrupts within this time trigger ASPM disable */
#define ASPM_TRIGGER_MS
#define ASPM_TRIGGER_NS
#define ASPM_L1_SUPPORTED(reg)

uint aspm_mode =;
module_param_named(aspm, aspm_mode, uint, 0444);
MODULE_PARM_DESC();

static bool aspm_hw_l1_supported(struct hfi1_devdata *dd)
{}

/* Set L1 entrance latency for slower entry to L1 */
static void aspm_hw_set_l1_ent_latency(struct hfi1_devdata *dd)
{}

static void aspm_hw_enable_l1(struct hfi1_devdata *dd)
{}

void aspm_hw_disable_l1(struct hfi1_devdata *dd)
{}

static  void aspm_enable(struct hfi1_devdata *dd)
{}

static  void aspm_disable(struct hfi1_devdata *dd)
{}

static  void aspm_disable_inc(struct hfi1_devdata *dd)
{}

static  void aspm_enable_dec(struct hfi1_devdata *dd)
{}

/* ASPM processing for each receive context interrupt */
void __aspm_ctx_disable(struct hfi1_ctxtdata *rcd)
{}

/* Timer function for re-enabling ASPM in the absence of interrupt activity */
static  void aspm_ctx_timer_function(struct timer_list *t)
{}

/*
 * Disable interrupt processing for verbs contexts when PSM or VNIC contexts
 * are open.
 */
void aspm_disable_all(struct hfi1_devdata *dd)
{}

/* Re-enable interrupt processing for verbs contexts */
void aspm_enable_all(struct hfi1_devdata *dd)
{}

static  void aspm_ctx_init(struct hfi1_ctxtdata *rcd)
{}

void aspm_init(struct hfi1_devdata *dd)
{}

void aspm_exit(struct hfi1_devdata *dd)
{}