blob: bdd3fa7d67852345131ed1e46f159728b598dcdd [file] [log] [blame]
Georgios Katsikas13ccba62020-03-18 12:05:03 +01001/*
2 * Copyright 2020-present Open Networking Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package org.onosproject.drivers.server.devices.memory;
18
19/**
20 * Represents an abstraction of a main memory device.
21 */
22public interface MemoryModuleDevice {
23
24 /**
25 * Maximum main memory speed in million transfers per second (MT/s).
26 */
27 static final long MAX_SPEED_MTS = 8000;
28
29 /**
30 * Returns the type of this main memory module.
31 *
32 * @return main memory type
33 */
34 MemoryType type();
35
36 /**
37 * Returns the manufacturer of this main memory module.
38 *
39 * @return main memory manufacturer
40 */
41 String manufacturer();
42
43 /**
44 * Returns the serial number of this main memory module.
45 *
46 * @return main memory serial number
47 */
48 String serialNumber();
49
50 /**
51 * Returns the data width (in bits) of this main memory module.
52 *
53 * @return data width in bits
54 */
55 int dataWidth();
56
57 /**
58 * Returns the total width (in bits) of this main memory module.
59 *
60 * @return total width in bits
61 */
62 int totalWidth();
63
64 /**
65 * Returns the capacity (in MBytes) of this main memory module.
66 *
67 * @return capacity in MBytes
68 */
69 long capacity();
70
71 /**
72 * Returns the speed of this main memory module in MT/s.
73 *
74 * @return main memory speed in MT/s
75 */
76 long speed();
77
78 /**
79 * Returns the configuted speed of this main memory in MT/s.
80 *
81 * @return configured main memory speed in MT/s
82 */
83 long configuredSpeed();
84
85}