OpenBIC
OpenSource Bridge-IC
clock_shell.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
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
17#ifndef CLOCK_SHELL_H
18#define CLOCK_SHELL_H
19
20#include <shell/shell.h>
21
23
24typedef struct clock_compnt_mapping {
25 uint8_t clock_name_index;
26 uint8_t addr;
27 uint8_t bus;
28 uint8_t *clock_name;
30
31void cmd_set_clock(const struct shell *shell, size_t argc, char **argv);
32void cmd_get_clock(const struct shell *shell, size_t argc, char **argv);
33void cmd_get_clock_status(const struct shell *shell, size_t argc, char **argv);
34void cmd_clear_clock_status(const struct shell *shell, size_t argc, char **argv);
35
36#endif
struct clock_compnt_mapping clock_compnt_mapping
void cmd_clear_clock_status(const struct shell *shell, size_t argc, char **argv)
Definition: clock_shell.c:449
CLOCK_COMPONENT
Definition: clock_shell.h:22
@ CLK_COMPONENT_MAX
Definition: clock_shell.h:27
void cmd_set_clock(const struct shell *shell, size_t argc, char **argv)
Definition: clock_shell.c:125
void cmd_get_clock(const struct shell *shell, size_t argc, char **argv)
Definition: clock_shell.c:286
void cmd_get_clock_status(const struct shell *shell, size_t argc, char **argv)
Definition: clock_shell.c:349
@ CLK_BUF_100M_U88
Definition: clock_shell.h:22
@ CLK_BUF_100M_U87
Definition: clock_shell.h:22
@ CLK_BUF_100M_U85
Definition: clock_shell.h:22
Definition: clock_shell.h:30
uint8_t clock_name_index
Definition: clock_shell.h:31
uint8_t addr
Definition: clock_shell.h:32
uint8_t bus
Definition: clock_shell.h:33
uint8_t * clock_name
Definition: clock_shell.h:34