pci.h (eda6500a987a027b78a275c11db6454404a626aa) pci.h (31557f0f9755696530d08465cf9940404f2d48e2)
1/*
2 * drivers/net/ethernet/mellanox/mlxsw/pci.h
3 * Copyright (c) 2015 Mellanox Technologies. All rights reserved.
4 * Copyright (c) 2015 Jiri Pirko <jiri@mellanox.com>
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met:
8 *

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

34
35#ifndef _MLXSW_PCI_H
36#define _MLXSW_PCI_H
37
38#include <linux/bitops.h>
39
40#include "item.h"
41
1/*
2 * drivers/net/ethernet/mellanox/mlxsw/pci.h
3 * Copyright (c) 2015 Mellanox Technologies. All rights reserved.
4 * Copyright (c) 2015 Jiri Pirko <jiri@mellanox.com>
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met:
8 *

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

34
35#ifndef _MLXSW_PCI_H
36#define _MLXSW_PCI_H
37
38#include <linux/bitops.h>
39
40#include "item.h"
41
42#define PCI_DEVICE_ID_MELLANOX_SWITCHX2 0xc738
42#define MLXSW_PCI_BAR0_SIZE (1024 * 1024) /* 1MB */
43#define MLXSW_PCI_PAGE_SIZE 4096
44
45#define MLXSW_PCI_CIR_BASE 0x71000
46#define MLXSW_PCI_CIR_IN_PARAM_HI MLXSW_PCI_CIR_BASE
47#define MLXSW_PCI_CIR_IN_PARAM_LO (MLXSW_PCI_CIR_BASE + 0x04)
48#define MLXSW_PCI_CIR_IN_MODIFIER (MLXSW_PCI_CIR_BASE + 0x08)
49#define MLXSW_PCI_CIR_OUT_PARAM_HI (MLXSW_PCI_CIR_BASE + 0x0C)

--- 171 unchanged lines hidden ---
43#define MLXSW_PCI_BAR0_SIZE (1024 * 1024) /* 1MB */
44#define MLXSW_PCI_PAGE_SIZE 4096
45
46#define MLXSW_PCI_CIR_BASE 0x71000
47#define MLXSW_PCI_CIR_IN_PARAM_HI MLXSW_PCI_CIR_BASE
48#define MLXSW_PCI_CIR_IN_PARAM_LO (MLXSW_PCI_CIR_BASE + 0x04)
49#define MLXSW_PCI_CIR_IN_MODIFIER (MLXSW_PCI_CIR_BASE + 0x08)
50#define MLXSW_PCI_CIR_OUT_PARAM_HI (MLXSW_PCI_CIR_BASE + 0x0C)

--- 171 unchanged lines hidden ---