1 #
   2 # CDDL HEADER START
   3 #
   4 # The contents of this file are subject to the terms of the
   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 #
  22 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
  23 #
  24 #
  25 # Copyright 2013 Damian Bogel. All rights reserved.
  26 #
  27 
  28 include $(SRC)/uts/Makefile.uts
  29 
  30 FILEMODE=644
  31 
  32 #
  33 #       Note that the following headers are present in the kernel but
  34 #       neither installed or shipped as part of the product:
  35 #               cpuid_drv.h:            Private interface for cpuid consumers
  36 #               unix_bb_info.h:         Private interface to kcov
  37 #
  38 
  39 i386_HDRS=                      \
  40         agp/agpamd64gart_io.h   \
  41         agp/agpdefs.h           \
  42         agp/agpgart_impl.h      \
  43         agp/agpmaster_io.h      \
  44         agp/agptarget_io.h      \
  45         agpgart.h               \
  46         asy.h                   \
  47         fd_debug.h              \
  48         fdc.h                   \
  49         fdmedia.h               \
  50         mouse.h                 \
  51         ucode.h
  52 
  53 sparc_HDRS=                     \
  54         mouse.h                 \
  55         scsi/targets/ssddef.h   \
  56         $(MDESCHDRS)
  57 
  58 # Generated headers
  59 GENHDRS=                        \
  60         priv_const.h            \
  61         priv_names.h            \
  62         usb/usbdevs.h
  63 
  64 CHKHDRS=                        \
  65         acpi_drv.h              \
  66         acct.h                  \
  67         acctctl.h               \
  68         acl.h                   \
  69         acl_impl.h              \
  70         aggr.h                  \
  71         aggr_impl.h             \
  72         aio.h                   \
  73         aio_impl.h              \
  74         aio_req.h               \
  75         aiocb.h                 \
  76         ascii.h                 \
  77         asynch.h                \
  78         atomic.h                \
  79         attr.h                  \
  80         audio.h                 \
  81         audioio.h               \
  82         autoconf.h              \
  83         auxv.h                  \
  84         auxv_386.h              \
  85         auxv_SPARC.h            \
  86         avl.h                   \
  87         avl_impl.h              \
  88         bitmap.h                \
  89         bitset.h                \
  90         bl.h                    \
  91         blkdev.h                \
  92         bofi.h                  \
  93         bofi_impl.h             \
  94         bpp_io.h                \
  95         bootstat.h              \
  96         brand.h                 \
  97         buf.h                   \
  98         bufmod.h                \
  99         bustypes.h              \
 100         byteorder.h             \
 101         callb.h                 \
 102         callo.h                 \
 103         cap_util.h              \
 104         cpucaps.h               \
 105         cpucaps_impl.h          \
 106         ccompile.h              \
 107         cdio.h                  \
 108         cladm.h                 \
 109         class.h                 \
 110         clconf.h                \
 111         clock_impl.h            \
 112         cmlb.h                  \
 113         cmn_err.h               \
 114         compress.h              \
 115         condvar.h               \
 116         condvar_impl.h          \
 117         conf.h                  \
 118         consdev.h               \
 119         console.h               \
 120         consplat.h              \
 121         vt.h                    \
 122         vtdaemon.h              \
 123         kd.h                    \
 124         contract.h              \
 125         contract_impl.h         \
 126         copyops.h               \
 127         core.h                  \
 128         corectl.h               \
 129         cpc_impl.h              \
 130         cpc_pcbe.h              \
 131         cpr.h                   \
 132         cpupart.h               \
 133         cpuvar.h                \
 134         crc32.h                 \
 135         cred.h                  \
 136         cred_impl.h             \
 137         crtctl.h                \
 138         cryptmod.h              \
 139         csiioctl.h              \
 140         ctf.h                   \
 141         ctfs.h                  \
 142         ctfs_impl.h             \
 143         ctf_api.h               \
 144         ctype.h                 \
 145         cyclic.h                \
 146         cyclic_impl.h           \
 147         dacf.h                  \
 148         dacf_impl.h             \
 149         damap.h                 \
 150         damap_impl.h            \
 151         dc_ki.h                 \
 152         ddi.h                   \
 153         ddifm.h                 \
 154         ddifm_impl.h            \
 155         ddi_hp.h                \
 156         ddi_hp_impl.h           \
 157         ddi_intr.h              \
 158         ddi_intr_impl.h         \
 159         ddi_impldefs.h          \
 160         ddi_implfuncs.h         \
 161         ddi_obsolete.h          \
 162         ddi_timer.h             \
 163         ddidevmap.h             \
 164         ddidmareq.h             \
 165         ddimapreq.h             \
 166         ddipropdefs.h           \
 167         dditypes.h              \
 168         debug.h                 \
 169         des.h                   \
 170         devctl.h                \
 171         devcache.h              \
 172         devcache_impl.h         \
 173         devfm.h                 \
 174         devid_cache.h           \
 175         devinfo_impl.h          \
 176         devops.h                \
 177         devpolicy.h             \
 178         devpoll.h               \
 179         dirent.h                \
 180         disp.h                  \
 181         dkbad.h                 \
 182         dkio.h                  \
 183         dklabel.h               \
 184         dl.h                    \
 185         dlpi.h                  \
 186         dld.h                   \
 187         dld_impl.h              \
 188         dld_ioc.h               \
 189         dls.h                   \
 190         dls_mgmt.h              \
 191         dls_impl.h              \
 192         dma_i8237A.h            \
 193         dnlc.h                  \
 194         door.h                  \
 195         door_data.h             \
 196         door_impl.h             \
 197         dtrace.h                \
 198         dtrace_impl.h           \
 199         dumpadm.h               \
 200         dumphdr.h               \
 201         ecppsys.h               \
 202         ecppio.h                \
 203         ecppreg.h               \
 204         ecppvar.h               \
 205         efi_partition.h         \
 206         elf.h                   \
 207         elf_386.h               \
 208         elf_SPARC.h             \
 209         elf_notes.h             \
 210         elf_amd64.h             \
 211         elftypes.h              \
 212         emul64.h                \
 213         emul64cmd.h             \
 214         emul64var.h             \
 215         epm.h                   \
 216         errno.h                 \
 217         errorq.h                \
 218         errorq_impl.h           \
 219         esunddi.h               \
 220         ethernet.h              \
 221         euc.h                   \
 222         eucioctl.h              \
 223         exacct.h                \
 224         exacct_catalog.h        \
 225         exacct_impl.h           \
 226         exec.h                  \
 227         exechdr.h               \
 228         extdirent.h             \
 229         fault.h                 \
 230         fasttrap.h              \
 231         fasttrap_impl.h         \
 232         fbio.h                  \
 233         fbuf.h                  \
 234         fcntl.h                 \
 235         fct.h                   \
 236         fct_defines.h           \
 237         fctio.h                 \
 238         fdbuffer.h              \
 239         fdio.h                  \
 240         feature_tests.h         \
 241         fem.h                   \
 242         file.h                  \
 243         filio.h                 \
 244         flock.h                 \
 245         flock_impl.h            \
 246         fork.h                  \
 247         fsd.h                   \
 248         fsh.h                   \
 249         fsh_impl.h              \
 250         fss.h                   \
 251         fsspriocntl.h           \
 252         fsid.h                  \
 253         fssnap.h                \
 254         fssnap_if.h             \
 255         fstyp.h                 \
 256         ftrace.h                \
 257         fx.h                    \
 258         fxpriocntl.h            \
 259         gfs.h                   \
 260         gld.h                   \
 261         gldpriv.h               \
 262         group.h                 \
 263         hdio.h                  \
 264         hook.h                  \
 265         hook_event.h            \
 266         hook_impl.h             \
 267         hwconf.h                \
 268         ia.h                    \
 269         iapriocntl.h            \
 270         ibpart.h                \
 271         id32.h                  \
 272         idmap.h                 \
 273         ieeefp.h                \
 274         id_space.h              \
 275         instance.h              \
 276         int_const.h             \
 277         int_fmtio.h             \
 278         int_limits.h            \
 279         int_types.h             \
 280         inttypes.h              \
 281         ioccom.h                \
 282         ioctl.h                 \
 283         ipc.h                   \
 284         ipc_impl.h              \
 285         ipc_rctl.h              \
 286         ipmi.h                  \
 287         isa_defs.h              \
 288         iscsi_authclient.h      \
 289         iscsi_authclientglue.h  \
 290         iscsi_protocol.h        \
 291         jioctl.h                \
 292         kbd.h                   \
 293         kbdreg.h                \
 294         kbio.h                  \
 295         kcpc.h                  \
 296         kdi.h                   \
 297         kdi_impl.h              \
 298         kiconv.h                \
 299         kiconv_big5_utf8.h      \
 300         kiconv_cck_common.h     \
 301         kiconv_cp950hkscs_utf8.h        \
 302         kiconv_emea1.h          \
 303         kiconv_emea2.h          \
 304         kiconv_euckr_utf8.h     \
 305         kiconv_euctw_utf8.h     \
 306         kiconv_gb18030_utf8.h   \
 307         kiconv_gb2312_utf8.h    \
 308         kiconv_hkscs_utf8.h     \
 309         kiconv_ja.h             \
 310         kiconv_ja_jis_to_unicode.h      \
 311         kiconv_ja_unicode_to_jis.h      \
 312         kiconv_ko.h             \
 313         kiconv_latin1.h         \
 314         kiconv_sc.h             \
 315         kiconv_tc.h             \
 316         kiconv_uhc_utf8.h       \
 317         kiconv_utf8_big5.h      \
 318         kiconv_utf8_cp950hkscs.h        \
 319         kiconv_utf8_euckr.h     \
 320         kiconv_utf8_euctw.h     \
 321         kiconv_utf8_gb18030.h   \
 322         kiconv_utf8_gb2312.h    \
 323         kiconv_utf8_hkscs.h     \
 324         kiconv_utf8_uhc.h       \
 325         kidmap.h                \
 326         klpd.h                  \
 327         klwp.h                  \
 328         kmdb.h                  \
 329         kmem.h                  \
 330         kmem_impl.h             \
 331         kobj.h                  \
 332         kobj_impl.h             \
 333         ksocket.h               \
 334         kstat.h                 \
 335         kstr.h                  \
 336         ksyms.h                 \
 337         ksynch.h                \
 338         ldterm.h                \
 339         lgrp.h                  \
 340         lgrp_user.h             \
 341         libc_kernel.h           \
 342         link.h                  \
 343         list.h                  \
 344         list_impl.h             \
 345         llc1.h                  \
 346         loadavg.h               \
 347         lock.h                  \
 348         lockfs.h                \
 349         lockstat.h              \
 350         lofi.h                  \
 351         log.h                   \
 352         logindmux.h             \
 353         logindmux_impl.h        \
 354         lwp.h                   \
 355         lwp_timer_impl.h        \
 356         lwp_upimutex_impl.h     \
 357         lpif.h                  \
 358         mac.h                   \
 359         mac_client.h            \
 360         mac_client_impl.h       \
 361         mac_ether.h             \
 362         mac_flow.h              \
 363         mac_flow_impl.h         \
 364         mac_impl.h              \
 365         mac_provider.h          \
 366         mac_soft_ring.h         \
 367         mac_stat.h              \
 368         machelf.h               \
 369         map.h                   \
 370         md4.h                   \
 371         md5.h                   \
 372         md5_consts.h            \
 373         mdi_impldefs.h          \
 374         mem.h                   \
 375         mem_config.h            \
 376         memlist.h               \
 377         mkdev.h                 \
 378         mhd.h                   \
 379         mii.h                   \
 380         miiregs.h               \
 381         mixer.h                 \
 382         mman.h                  \
 383         mmapobj.h               \
 384         mntent.h                \
 385         mntio.h                 \
 386         mnttab.h                \
 387         modctl.h                \
 388         mode.h                  \
 389         model.h                 \
 390         modhash.h               \
 391         modhash_impl.h          \
 392         mount.h                 \
 393         mouse.h                 \
 394         msacct.h                \
 395         msg.h                   \
 396         msg_impl.h              \
 397         msio.h                  \
 398         msreg.h                 \
 399         mtio.h                  \
 400         multidata.h             \
 401         multidata_impl.h        \
 402         mutex.h                 \
 403         nbmlock.h               \
 404         ndifm.h                 \
 405         ndi_impldefs.h          \
 406         net80211.h              \
 407         net80211_crypto.h       \
 408         net80211_ht.h           \
 409         net80211_proto.h        \
 410         netconfig.h             \
 411         neti.h                  \
 412         netstack.h              \
 413         nexusdefs.h             \
 414         note.h                  \
 415         nvpair.h                \
 416         nvpair_impl.h           \
 417         objfs.h                 \
 418         objfs_impl.h            \
 419         ontrap.h                \
 420         open.h                  \
 421         openpromio.h            \
 422         panic.h                 \
 423         param.h                 \
 424         pathconf.h              \
 425         pathname.h              \
 426         pattr.h                 \
 427         queue.h                 \
 428         serializer.h            \
 429         pbio.h                  \
 430         pccard.h                \
 431         pci.h                   \
 432         pcie.h                  \
 433         pci_impl.h              \
 434         pci_tools.h             \
 435         pcmcia.h                \
 436         pctypes.h               \
 437         pfmod.h                 \
 438         pg.h                    \
 439         pghw.h                  \
 440         physmem.h               \
 441         pkp_hash.h              \
 442         pm.h                    \
 443         policy.h                \
 444         poll.h                  \
 445         poll_impl.h             \
 446         pool.h                  \
 447         pool_impl.h             \
 448         pool_pset.h             \
 449         port.h                  \
 450         port_impl.h             \
 451         port_kernel.h           \
 452         portif.h                \
 453         ppmio.h                 \
 454         pppt_ic_if.h            \
 455         pppt_ioctl.h            \
 456         priocntl.h              \
 457         priv.h                  \
 458         priv_impl.h             \
 459         prnio.h                 \
 460         proc.h                  \
 461         processor.h             \
 462         procfs.h                \
 463         procset.h               \
 464         project.h               \
 465         protosw.h               \
 466         prsystm.h               \
 467         pset.h                  \
 468         pshot.h                 \
 469         ptem.h                  \
 470         ptms.h                  \
 471         ptyvar.h                \
 472         raidioctl.h             \
 473         ramdisk.h               \
 474         random.h                \
 475         rctl.h                  \
 476         rctl_impl.h             \
 477         rds.h                   \
 478         reboot.h                \
 479         refstr.h                \
 480         refstr_impl.h           \
 481         resource.h              \
 482         rlioctl.h               \
 483         rt.h                    \
 484         rtpriocntl.h            \
 485         rwlock.h                \
 486         rwlock_impl.h           \
 487         rwstlock.h              \
 488         sad.h                   \
 489         schedctl.h              \
 490         sdt.h                   \
 491         select.h                \
 492         sem.h                   \
 493         sem_impl.h              \
 494         sema_impl.h             \
 495         semaphore.h             \
 496         sendfile.h              \
 497         ser_sync.h              \
 498         session.h               \
 499         sha1.h                  \
 500         sha1_consts.h           \
 501         sha2.h                  \
 502         sha2_consts.h           \
 503         share.h                 \
 504         shm.h                   \
 505         shm_impl.h              \
 506         sid.h                   \
 507         siginfo.h               \
 508         signal.h                \
 509         sleepq.h                \
 510         smbios.h                \
 511         smbios_impl.h           \
 512         sobject.h               \
 513         socket.h                \
 514         socket_impl.h           \
 515         socket_proto.h          \
 516         socketvar.h             \
 517         sockfilter.h            \
 518         sockio.h                \
 519         soundcard.h             \
 520         squeue.h                \
 521         squeue_impl.h           \
 522         srn.h                   \
 523         sservice.h              \
 524         stat.h                  \
 525         statfs.h                \
 526         statvfs.h               \
 527         stdbool.h               \
 528         stdint.h                \
 529         stermio.h               \
 530         stmf.h                  \
 531         stmf_defines.h          \
 532         stmf_ioctl.h            \
 533         stmf_sbd_ioctl.h        \
 534         stream.h                \
 535         strft.h                 \
 536         strlog.h                \
 537         strmdep.h               \
 538         stropts.h               \
 539         strredir.h              \
 540         strstat.h               \
 541         strsubr.h               \
 542         strsun.h                \
 543         strtty.h                \
 544         sunddi.h                \
 545         sunldi.h                \
 546         sunldi_impl.h           \
 547         sunmdi.h                \
 548         sunndi.h                \
 549         sunos_dhcp_class.h      \
 550         sunpm.h                 \
 551         suntpi.h                \
 552         suntty.h                \
 553         swap.h                  \
 554         synch.h                 \
 555         sysdc.h                 \
 556         sysdc_impl.h            \
 557         syscall.h               \
 558         sysconf.h               \
 559         sysconfig.h             \
 560         sysevent.h              \
 561         sysevent_impl.h         \
 562         sysinfo.h               \
 563         syslog.h                \
 564         sysmacros.h             \
 565         sysmsg_impl.h           \
 566         systeminfo.h            \
 567         systm.h                 \
 568         task.h                  \
 569         taskq.h                 \
 570         taskq_impl.h            \
 571         t_kuser.h               \
 572         t_lock.h                \
 573         telioctl.h              \
 574         termio.h                \
 575         termios.h               \
 576         termiox.h               \
 577         thread.h                \
 578         ticlts.h                \
 579         ticots.h                \
 580         ticotsord.h             \
 581         tihdr.h                 \
 582         time.h                  \
 583         time_impl.h             \
 584         time_std_impl.h         \
 585         timeb.h                 \
 586         timer.h                 \
 587         times.h                 \
 588         timex.h                 \
 589         timod.h                 \
 590         tirdwr.h                \
 591         tiuser.h                \
 592         tl.h                    \
 593         tnf.h                   \
 594         tnf_com.h               \
 595         tnf_probe.h             \
 596         tnf_writer.h            \
 597         todio.h                 \
 598         tpicommon.h             \
 599         ts.h                    \
 600         tspriocntl.h            \
 601         ttcompat.h              \
 602         ttold.h                 \
 603         tty.h                   \
 604         ttychars.h              \
 605         ttydev.h                \
 606         tuneable.h              \
 607         turnstile.h             \
 608         types.h                 \
 609         types32.h               \
 610         tzfile.h                \
 611         u8_textprep.h           \
 612         u8_textprep_data.h      \
 613         uadmin.h                \
 614         ucred.h                 \
 615         uio.h                   \
 616         ulimit.h                \
 617         un.h                    \
 618         unistd.h                \
 619         user.h                  \
 620         ustat.h                 \
 621         utime.h                 \
 622         utsname.h               \
 623         utssys.h                \
 624         uuid.h                  \
 625         va_impl.h               \
 626         va_list.h               \
 627         var.h                   \
 628         varargs.h               \
 629         vfs.h                   \
 630         vfs_opreg.h             \
 631         vfstab.h                \
 632         vgareg.h                \
 633         videodev2.h             \
 634         visual_io.h             \
 635         vlan.h                  \
 636         vm.h                    \
 637         vm_usage.h              \
 638         vmem.h                  \
 639         vmem_impl.h             \
 640         vmsystm.h               \
 641         vnic.h                  \
 642         vnic_impl.h             \
 643         vnode.h                 \
 644         vscan.h                 \
 645         vtoc.h                  \
 646         vtrace.h                \
 647         vuid_event.h            \
 648         vuid_wheel.h            \
 649         vuid_queue.h            \
 650         vuid_state.h            \
 651         vuid_store.h            \
 652         wait.h                  \
 653         waitq.h                 \
 654         wanboot_impl.h          \
 655         watchpoint.h            \
 656         winlockio.h             \
 657         zcons.h                 \
 658         zone.h                  \
 659         xti_inet.h              \
 660         xti_osi.h               \
 661         xti_xtiopt.h            \
 662         zmod.h
 663 
 664 HDRS=                           \
 665         $(GENHDRS)              \
 666         $(CHKHDRS)
 667 
 668 AUDIOHDRS=                      \
 669         ac97.h                  \
 670         audio_common.h          \
 671         audio_driver.h          \
 672         audio_oss.h             \
 673         g711.h
 674 
 675 AVHDRS=                         \
 676         iec61883.h
 677 
 678 BSCHDRS=                        \
 679         bscbus.h                \
 680         bscv_impl.h             \
 681         lom_ebuscodes.h         \
 682         lom_io.h                \
 683         lom_priv.h              \
 684         lombus.h
 685 
 686 MDESCHDRS=                      \
 687         mdesc.h                 \
 688         mdesc_impl.h            
 689 
 690 CPUDRVHDRS=                     \
 691         cpudrv.h
 692 
 693 CRYPTOHDRS=                     \
 694         elfsign.h               \
 695         ioctl.h                 \
 696         ioctladmin.h            \
 697         common.h                \
 698         impl.h                  \
 699         spi.h                   \
 700         api.h                   \
 701         ops_impl.h              \
 702         sched_impl.h
 703 
 704 DCAMHDRS=                       \
 705         dcam1394_io.h
 706 
 707 IBHDRS=                 \
 708         ib_types.h      \
 709         ib_pkt_hdrs.h
 710 
 711 IBTLHDRS=               \
 712         ibtl_types.h    \
 713         ibtl_status.h   \
 714         ibti.h          \
 715         ibti_cm.h       \
 716         ibci.h          \
 717         ibti_common.h   \
 718         ibvti.h         \
 719         ibtl_ci_types.h
 720 
 721 IBTLIMPLHDRS=           \
 722         ibtl_util.h
 723 
 724 IBNEXHDRS=              \
 725         ibnex_devctl.h
 726 
 727 IBMFHDRS=               \
 728         ibmf.h          \
 729         ibmf_msg.h      \
 730         ibmf_saa.h      \
 731         ibmf_utils.h
 732 
 733 IBMGTHDRS=              \
 734         ib_dm_attr.h    \
 735         ib_mad.h        \
 736         sm_attr.h       \
 737         sa_recs.h
 738 
 739 IBDHDRS=                \
 740         ibd.h
 741 
 742 OFHDRS=                 \
 743         ofa_solaris.h   \
 744         ofed_kernel.h
 745 
 746 RDMAHDRS=               \
 747         ib_addr.h       \
 748         ib_user_mad.h   \
 749         ib_user_sa.h    \
 750         ib_user_verbs.h \
 751         ib_verbs.h      \
 752         rdma_cm.h       \
 753         rdma_user_cm.h
 754 
 755 SOL_UVERBSHDRS=         \
 756         sol_uverbs.h    \
 757         sol_uverbs2ucma.h       \
 758         sol_uverbs_comp.h       \
 759         sol_uverbs_hca.h        \
 760         sol_uverbs_qp.h         \
 761         sol_uverbs_event.h
 762 
 763 SOL_UMADHDRS=           \
 764         sol_umad.h
 765 
 766 SOL_UCMAHDRS=           \
 767         sol_ucma.h      \
 768         sol_rdma_user_cm.h
 769 
 770 SOL_OFSHDRS=            \
 771         sol_cma.h       \
 772         sol_ib_cma.h    \
 773         sol_ofs_common.h        \
 774         sol_kverb_impl.h
 775 
 776 TAVORHDRS=              \
 777         tavor_ioctl.h
 778 
 779 HERMONHDRS=             \
 780         hermon_ioctl.h
 781 
 782 MLNXHDRS=               \
 783         mlnx_umap.h
 784 
 785 IDMHDRS=                \
 786         idm.h           \
 787         idm_impl.h      \
 788         idm_so.h        \
 789         idm_text.h      \
 790         idm_transport.h \
 791         idm_conn_sm.h
 792 
 793 ISCSITHDRS=             \
 794         radius_packet.h         \
 795         radius_protocol.h       \
 796         chap.h                  \
 797         isns_protocol.h         \
 798         iscsi_if.h              \
 799         iscsit_common.h
 800 
 801 ISOHDRS=                        \
 802         signal_iso.h
 803 
 804 DERIVED_LVMHDRS=        \
 805         md_mdiox.h              \
 806         md_basic.h              \
 807         mdmed.h                 \
 808         md_mhdx.h               \
 809         mdmn_commd.h
 810 
 811 LVMHDRS=                        \
 812         md_convert.h            \
 813         md_crc.h                \
 814         md_hotspares.h          \
 815         md_mddb.h               \
 816         md_mirror.h             \
 817         md_mirror_shared.h      \
 818         md_names.h              \
 819         md_notify.h             \
 820         md_raid.h               \
 821         md_rename.h             \
 822         md_sp.h                 \
 823         md_stripe.h             \
 824         md_trans.h              \
 825         mdio.h                  \
 826         mdvar.h                 
 827 
 828 ALL_LVMHDRS=                    \
 829         $(LVMHDRS)              \
 830         $(DERIVED_LVMHDRS)
 831 
 832 FMHDRS=                         \
 833         protocol.h              \
 834         util.h
 835 
 836 FMFSHDRS=                       \
 837         zfs.h
 838 
 839 FMIOHDRS=                       \
 840         ddi.h                   \
 841         disk.h                  \
 842         pci.h                   \
 843         scsi.h                  \
 844         sun4upci.h              \
 845         opl_mc_fm.h
 846 
 847 FSHDRS=                         \
 848         autofs.h                \
 849         cachefs_dir.h           \
 850         cachefs_dlog.h          \
 851         cachefs_filegrp.h       \
 852         cachefs_fs.h            \
 853         cachefs_fscache.h       \
 854         cachefs_ioctl.h         \
 855         cachefs_log.h           \
 856         decomp.h                \
 857         dv_node.h               \
 858         sdev_impl.h             \
 859         fifonode.h              \
 860         hsfs_isospec.h          \
 861         hsfs_node.h             \
 862         hsfs_rrip.h             \
 863         hsfs_spec.h             \
 864         hsfs_susp.h             \
 865         lofs_info.h             \
 866         lofs_node.h             \
 867         mntdata.h               \
 868         namenode.h              \
 869         pc_dir.h                \
 870         pc_fs.h                 \
 871         pc_label.h              \
 872         pc_node.h               \
 873         pxfs_ki.h               \
 874         snode.h                 \
 875         swapnode.h              \
 876         tmp.h                   \
 877         tmpnode.h               \
 878         udf_inode.h             \
 879         udf_volume.h            \
 880         ufs_acl.h               \
 881         ufs_bio.h               \
 882         ufs_filio.h             \
 883         ufs_fs.h                \
 884         ufs_fsdir.h             \
 885         ufs_inode.h             \
 886         ufs_lockfs.h            \
 887         ufs_log.h               \
 888         ufs_mount.h             \
 889         ufs_panic.h             \
 890         ufs_prot.h              \
 891         ufs_quota.h             \
 892         ufs_snap.h              \
 893         ufs_trans.h             \
 894         zfs.h                   \
 895         zut.h
 896 
 897 PCMCIAHDRS=             \
 898         pcata.h         \
 899         pcser_conf.h    \
 900         pcser_io.h      \
 901         pcser_reg.h     \
 902         pcser_manuspec.h \
 903         pcser_var.h
 904 
 905 SCSIHDRS=               \
 906         scsi.h          \
 907         scsi_address.h  \
 908         scsi_ctl.h      \
 909         scsi_fm.h       \
 910         scsi_params.h   \
 911         scsi_pkt.h      \
 912         scsi_resource.h \
 913         scsi_types.h    \
 914         scsi_watch.h
 915 
 916 SCSICONFHDRS=           \
 917         autoconf.h      \
 918         device.h
 919 
 920 SCSIGENHDRS=            \
 921         commands.h      \
 922         dad_mode.h      \
 923         inquiry.h       \
 924         message.h       \
 925         mode.h          \
 926         persist.h       \
 927         sense.h         \
 928         sff_frames.h    \
 929         smp_frames.h    \
 930         status.h
 931 
 932 SCSIIMPLHDRS=           \
 933         commands.h      \
 934         inquiry.h       \
 935         mode.h          \
 936         scsi_reset_notify.h \
 937         scsi_sas.h      \
 938         sense.h         \
 939         services.h      \
 940         smp_transport.h \
 941         spc3_types.h    \
 942         status.h        \
 943         transport.h     \
 944         types.h         \
 945         uscsi.h         \
 946         usmp.h
 947 
 948 SCSITARGETSHDRS=        \
 949         ses.h           \
 950         sesio.h         \
 951         sgendef.h       \
 952         stdef.h         \
 953         sddef.h         \
 954         smp.h
 955 
 956 SCSIADHDRS=
 957 
 958 SCSICADHDRS=
 959 
 960 SCSIISCSIHDRS=          \
 961         iscsi_door.h    \
 962         iscsi_if.h
 963 
 964 SCSIVHCIHDRS=           \
 965         scsi_vhci.h     \
 966         mpapi_impl.h    \
 967         mpapi_scsi_vhci.h
 968 
 969 SDCARDHDRS=             \
 970         sda.h           \
 971         sda_impl.h      \
 972         sda_ioctl.h
 973 
 974 FC4HDRS=                        \
 975         fc_transport.h  \
 976         linkapp.h       \
 977         fc.h            \
 978         fcp.h           \
 979         fcal_transport.h \
 980         fcal.h          \
 981         fcal_linkapp.h  \
 982         fcio.h
 983 
 984 FCHDRS=                 \
 985         fc.h            \
 986         fcio.h          \
 987         fc_types.h      \
 988         fc_appif.h
 989 
 990 FCIMPLHDRS=             \
 991         fc_error.h      \
 992         fcph.h
 993 
 994 FCULPHDRS=              \
 995         fcp_util.h      \
 996         fcsm.h
 997 
 998 SATAGENHDRS=            \
 999         sata_hba.h      \
1000         sata_defs.h     \
1001         sata_cfgadm.h
1002 
1003 SYSEVENTHDRS=           \
1004         ap_driver.h     \
1005         dev.h           \
1006         domain.h        \
1007         dr.h            \
1008         env.h           \
1009         eventdefs.h     \
1010         ipmp.h          \
1011         pwrctl.h        \
1012         svm.h           \
1013         vrrp.h
1014 
1015 CONTRACTHDRS=           \
1016         process.h       \
1017         process_impl.h  \
1018         device.h        \
1019         device_impl.h
1020 
1021 USBHDRS=        \
1022         usba.h  \
1023         usbai.h
1024 
1025 UWBHDRS=        \
1026         uwb.h   \
1027         uwbai.h
1028 
1029 UWBAHDRS=       \
1030         uwba.h
1031 
1032 USBAUDHDRS=           \
1033         usb_audio.h
1034 
1035 USBHUBDHDRS=            \
1036         hub.h           \
1037         hubd_impl.h
1038 
1039 USBHIDHDRS=             \
1040         hid.h
1041 
1042 USBHWARCHDRS=           \
1043         hwarc.h
1044 
1045 USBMSHDRS=              \
1046         usb_bulkonly.h  \
1047         usb_cbi.h
1048 
1049 USBPRNHDRS=           \
1050         usb_printer.h
1051 
1052 USBCDCHDRS=             \
1053         usb_cdc.h
1054 
1055 USBVIDHDRS=           \
1056         usbvc.h
1057 
1058 USBWCMHDRS=             \
1059         usbwcm.h
1060 
1061 UGENHDRS=           \
1062         usb_ugen.h
1063 
1064 HOTPLUGHDRS=    \
1065         hpcsvc.h        \
1066         hpctrl.h
1067 
1068 HOTPLUGPCIHDRS= \
1069         pcicfg.h        \
1070         pcihp.h
1071 
1072 RSMHDRS= \
1073         rsm.h   \
1074         rsm_common.h    \
1075         rsmapi_common.h \
1076         rsmpi.h \
1077         rsmpi_driver.h  \
1078         rsmka_path_int.h
1079 
1080 TSOLHDRS=               \
1081         label.h         \
1082         label_macro.h   \
1083         priv.h          \
1084         tndb.h          \
1085         tsyscall.h
1086 
1087 I1394HDRS=              \
1088         cmd1394.h       \
1089         id1394.h        \
1090         ieee1212.h      \
1091         ieee1394.h      \
1092         ixl1394.h       \
1093         s1394_impl.h    \
1094         t1394.h
1095 
1096 # "cmdk" headers used on sparc
1097 SDKTPHDRS=              \
1098         dadkio.h        \
1099         fdisk.h
1100 
1101 # "cmdk" headers used on i386
1102 DKTPHDRS=               \
1103         altsctr.h       \
1104         bbh.h           \
1105         cm.h            \
1106         cmdev.h         \
1107         cmdk.h          \
1108         cmpkt.h         \
1109         controller.h    \
1110         dadev.h         \
1111         dadk.h          \
1112         dadkio.h        \
1113         fctypes.h       \
1114         fdisk.h         \
1115         flowctrl.h      \
1116         gda.h           \
1117         quetypes.h      \
1118         queue.h         \
1119         tgcom.h         \
1120         tgdk.h
1121 
1122 # "pc" header files used on i386
1123 PCHDRS=                 \
1124         avintr.h        \
1125         dma_engine.h    \
1126         i8272A.h        \
1127         pcic_reg.h      \
1128         pcic_var.h      \
1129         pic.h           \
1130         pit.h           \
1131         rtc.h
1132 
1133 NXGEHDRS=                       \
1134         nxge.h                  \
1135         nxge_common.h           \
1136         nxge_common_impl.h      \
1137         nxge_defs.h             \
1138         nxge_hw.h               \
1139         nxge_impl.h             \
1140         nxge_ipp.h              \
1141         nxge_ipp_hw.h           \
1142         nxge_mac.h              \
1143         nxge_mac_hw.h           \
1144         nxge_fflp.h             \
1145         nxge_fflp_hw.h          \
1146         nxge_mii.h              \
1147         nxge_rxdma.h            \
1148         nxge_rxdma_hw.h         \
1149         nxge_txc.h              \
1150         nxge_txc_hw.h           \
1151         nxge_txdma.h            \
1152         nxge_txdma_hw.h         \
1153         nxge_virtual.h          \
1154         nxge_espc.h
1155 
1156 include Makefile.syshdrs
1157 
1158 dcam/%.check:   dcam/%.h
1159         $(DOT_H_CHECK)
1160 
1161 CHECKHDRS=                                              \
1162         $($(MACH)_HDRS:%.h=%.check)                     \
1163         $(AUDIOHDRS:%.h=audio/%.check)                  \
1164         $(AVHDRS:%.h=av/%.check)                        \
1165         $(BSCHDRS:%.h=%.check)                          \
1166         $(CHKHDRS:%.h=%.check)                          \
1167         $(CPUDRVHDRS:%.h=%.check)                       \
1168         $(CRYPTOHDRS:%.h=crypto/%.check)                \
1169         $(DCAMHDRS:%.h=dcam/%.check)                    \
1170         $(FC4HDRS:%.h=fc4/%.check)                      \
1171         $(FCHDRS:%.h=fibre-channel/%.check)             \
1172         $(FCIMPLHDRS:%.h=fibre-channel/impl/%.check)    \
1173         $(FCULPHDRS:%.h=fibre-channel/ulp/%.check)      \
1174         $(IBHDRS:%.h=ib/%.check)                        \
1175         $(IBDHDRS:%.h=ib/clients/ibd/%.check)           \
1176         $(IBTLHDRS:%.h=ib/ibtl/%.check)                 \
1177         $(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)        \
1178         $(IBNEXHDRS:%.h=ib/ibnex/%.check)       \
1179         $(IBMGTHDRS:%.h=ib/mgt/%.check)                 \
1180         $(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)             \
1181         $(OFHDRS:%.h=ib/clients/of/%.check)                     \
1182         $(RDMAHDRS:%.h=ib/clients/of/rdma/%.check)              \
1183         $(SOL_UVERBSHDRS:%.h=ib/clients/of/sol_uverbs/%.check)  \
1184         $(SOL_UCMAHDRS:%.h=ib/clients/of/sol_ucma/%.check)      \
1185         $(SOL_OFSHDRS:%.h=ib/clients/of/sol_ofs/%.check)        \
1186         $(TAVORHDRS:%.h=ib/adapters/tavor/%.check)      \
1187         $(HERMONHDRS:%.h=ib/adapters/hermon/%.check)    \
1188         $(MLNXHDRS:%.h=ib/adapters/%.check)             \
1189         $(IDMHDRS:%.h=idm/%.check)                      \
1190         $(ISCSIHDRS:%.h=iscsi/%.check)                  \
1191         $(ISCSITHDRS:%.h=iscsit/%.check)                        \
1192         $(ISOHDRS:%.h=iso/%.check)                      \
1193         $(FMHDRS:%.h=fm/%.check)                        \
1194         $(FMFSHDRS:%.h=fm/fs/%.check)                   \
1195         $(FMIOHDRS:%.h=fm/io/%.check)                   \
1196         $(FSHDRS:%.h=fs/%.check)                        \
1197         $(LVMHDRS:%.h=lvm/%.check)                      \
1198         $(PCMCIAHDRS:%.h=pcmcia/%.check)                \
1199         $(SCSIHDRS:%.h=scsi/%.check)                    \
1200         $(SCSIADHDRS:%.h=scsi/adapters/%.check)         \
1201         $(SCSICONFHDRS:%.h=scsi/conf/%.check)           \
1202         $(SCSIIMPLHDRS:%.h=scsi/impl/%.check)           \
1203         $(SCSIISCSIHDRS:%.h=scsi/adapters/%.check)      \
1204         $(SCSIGENHDRS:%.h=scsi/generic/%.check)         \
1205         $(SCSITARGETSHDRS:%.h=scsi/targets/%.check)     \
1206         $(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)       \
1207         $(SATAGENHDRS:%.h=sata/%.check)                 \
1208         $(SDCARDHDRS:%.h=sdcard/%.check)                \
1209         $(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1210         $(CONTRACTHDRS:%.h=contract/%.check)            \
1211         $(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1212         $(USBHUBDHDRS:%.h=usb/hubd/%.check)             \
1213         $(USBHIDHDRS:%.h=usb/clients/hid/%.check)       \
1214         $(USBHWARCHDRS:%.h=usb/clients/hwarc/%.check)   \
1215         $(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)       \
1216         $(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1217         $(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)    \
1218         $(USBVIDHDRS:%.h=usb/clients/video/usbvc/%.check)   \
1219         $(USBWCMHDRS:%.h=usb/clients/usbinput/usbwcm/%.check)   \
1220         $(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1221         $(USBHDRS:%.h=usb/%.check)                      \
1222         $(UWBHDRS:%.h=uwb/%.check)                      \
1223         $(UWBAHDRS:%.h=uwb/uwba/%.check)                      \
1224         $(I1394HDRS:%.h=1394/%.check)                   \
1225         $(RSMHDRS:%.h=rsm/%.check)                      \
1226         $(TSOLHDRS:%.h=tsol/%.check)                    \
1227         $(NXGEHDRS:%.h=nxge/%.check)
1228 
1229 
1230 .KEEP_STATE:
1231 
1232 .PARALLEL:                      \
1233         $(CHECKHDRS)            \
1234         $(ROOTHDRS)             \
1235         $(ROOTAUDHDRS)          \
1236         $(ROOTAVHDRS)           \
1237         $(ROOTCRYPTOHDRS)       \
1238         $(ROOTDCAMHDRS)         \
1239         $(ROOTISOHDRS)          \
1240         $(ROOTIDMHDRS)          \
1241         $(ROOTISCSIHDRS)        \
1242         $(ROOTISCSITHDRS)       \
1243         $(ROOTFC4HDRS)          \
1244         $(ROOTFCHDRS)           \
1245         $(ROOTFCIMPLHDRS)       \
1246         $(ROOTFCULPHDRS)        \
1247         $(ROOTFMHDRS)           \
1248         $(ROOTFMIOHDRS)         \
1249         $(ROOTFMFSHDRS)         \
1250         $(ROOTFSHDRS)           \
1251         $(ROOTIBDHDRS)          \
1252         $(ROOTIBHDRS)           \
1253         $(ROOTIBTLHDRS)         \
1254         $(ROOTIBTLIMPLHDRS)     \
1255         $(ROOTIBNEXHDRS)        \
1256         $(ROOTIBMGTHDRS)        \
1257         $(ROOTIBMFHDRS)         \
1258         $(ROOTOFHDRS)           \
1259         $(ROOTRDMAHDRS)         \
1260         $(ROOTSOL_OFSHDRS)      \
1261         $(ROOTSOL_UMADHDRS)     \
1262         $(ROOTSOL_UVERBSHDRS)   \
1263         $(ROOTSOL_UCMAHDRS)     \
1264         $(ROOTTAVORHDRS)        \
1265         $(ROOTHERMONHDRS)       \
1266         $(ROOTMLNXHDRS)         \
1267         $(ROOTLVMHDRS)          \
1268         $(ROOTPCMCIAHDRS)       \
1269         $(ROOTSCSIHDRS)         \
1270         $(ROOTSCSIADHDRS)       \
1271         $(ROOTSCSICONFHDRS)     \
1272         $(ROOTSCSIISCSIHDRS)    \
1273         $(ROOTSCSIGENHDRS)      \
1274         $(ROOTSCSIIMPLHDRS)     \
1275         $(ROOTSCSIVHCIHDRS)     \
1276         $(ROOTSDCARDHDRS)       \
1277         $(ROOTSYSEVENTHDRS)     \
1278         $(ROOTCONTRACTHDRS)     \
1279         $(ROOTUSBHDRS)          \
1280         $(ROOTUWBHDRS)          \
1281         $(ROOTUWBAHDRS)         \
1282         $(ROOTUSBAUDHDRS)       \
1283         $(ROOTUSBHUBDHDRS)      \
1284         $(ROOTUSBHIDHDRS)       \
1285         $(ROOTUSBHRCHDRS)       \
1286         $(ROOTUSBMSHDRS)        \
1287         $(ROOTUSBPRNHDRS)       \
1288         $(ROOTUSBCDCHDRS)       \
1289         $(ROOTUSBVIDHDRS)       \
1290         $(ROOTUSBWCMHDRS)       \
1291         $(ROOTUGENHDRS)         \
1292         $(ROOT1394HDRS)         \
1293         $(ROOTHOTPLUGHDRS)      \
1294         $(ROOTHOTPLUGPCIHDRS)   \
1295         $(ROOTRSMHDRS)          \
1296         $(ROOTTSOLHDRS)         \
1297         $($(MACH)_ROOTHDRS)
1298 
1299 
1300 install_h:                      \
1301         $(ROOTDIRS)             \
1302         LVMDERIVED_H            \
1303         .WAIT                   \
1304         $(ROOTHDRS)             \
1305         $(ROOTAUDHDRS)          \
1306         $(ROOTAVHDRS)           \
1307         $(ROOTCRYPTOHDRS)       \
1308         $(ROOTDCAMHDRS)         \
1309         $(ROOTISOHDRS)          \
1310         $(ROOTIDMHDRS)          \
1311         $(ROOTISCSIHDRS)        \
1312         $(ROOTISCSITHDRS)       \
1313         $(ROOTFC4HDRS)          \
1314         $(ROOTFCHDRS)           \
1315         $(ROOTFCIMPLHDRS)       \
1316         $(ROOTFCULPHDRS)        \
1317         $(ROOTFMHDRS)           \
1318         $(ROOTFMFSHDRS)         \
1319         $(ROOTFMIOHDRS)         \
1320         $(ROOTFSHDRS)           \
1321         $(ROOTIBDHDRS)          \
1322         $(ROOTIBHDRS)           \
1323         $(ROOTIBTLHDRS)         \
1324         $(ROOTIBTLIMPLHDRS)     \
1325         $(ROOTIBNEXHDRS)        \
1326         $(ROOTIBMGTHDRS)        \
1327         $(ROOTIBMFHDRS)         \
1328         $(ROOTOFHDRS)           \
1329         $(ROOTRDMAHDRS)         \
1330         $(ROOTSOL_OFSHDRS)      \
1331         $(ROOTSOL_UMADHDRS)     \
1332         $(ROOTSOL_UVERBSHDRS)   \
1333         $(ROOTSOL_UCMAHDRS)     \
1334         $(ROOTTAVORHDRS)        \
1335         $(ROOTHERMONHDRS)       \
1336         $(ROOTMLNXHDRS)         \
1337         $(ROOTLVMHDRS)          \
1338         $(ROOTPCMCIAHDRS)       \
1339         $(ROOTSCSIHDRS)         \
1340         $(ROOTSCSIADHDRS)       \
1341         $(ROOTSCSIISCSIHDRS)    \
1342         $(ROOTSCSICONFHDRS)     \
1343         $(ROOTSCSIGENHDRS)      \
1344         $(ROOTSCSIIMPLHDRS)     \
1345         $(ROOTSCSIVHCIHDRS)     \
1346         $(ROOTSDCARDHDRS)       \
1347         $(ROOTSYSEVENTHDRS)     \
1348         $(ROOTCONTRACTHDRS)     \
1349         $(ROOTUWBHDRS)          \
1350         $(ROOTUWBAHDRS)         \
1351         $(ROOTUSBHDRS)          \
1352         $(ROOTUSBAUDHDRS)       \
1353         $(ROOTUSBHUBDHDRS)      \
1354         $(ROOTUSBHIDHDRS)       \
1355         $(ROOTUSBHRCHDRS)       \
1356         $(ROOTUSBMSHDRS)        \
1357         $(ROOTUSBPRNHDRS)       \
1358         $(ROOTUSBCDCHDRS)       \
1359         $(ROOTUSBVIDHDRS)       \
1360         $(ROOTUSBWCMHDRS)       \
1361         $(ROOTUGENHDRS)         \
1362         $(ROOT1394HDRS)         \
1363         $(ROOTHOTPLUGHDRS)      \
1364         $(ROOTHOTPLUGPCIHDRS)   \
1365         $(ROOTRSMHDRS)          \
1366         $(ROOTTSOLHDRS)         \
1367         $($(MACH)_ROOTHDRS)
1368 
1369 all_h: $(GENHDRS)
1370 
1371 priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1372         $(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1373 
1374 priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1375         $(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1376 
1377 usb/usbdevs.h: $(USBDEVS_AWK) $(USBDEVS_DATA)
1378         $(NAWK) -f $(USBDEVS_AWK) $(USBDEVS_DATA) -H > $@
1379 
1380 LVMDERIVED_H:
1381         cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE)
1382 
1383 clean:
1384         $(RM) $(GENHDRS)
1385 
1386 clobber:        clean
1387 
1388 check:  $(CHECKHDRS)
1389 
1390 FRC:
1391 
1392 # EXPORT DELETE START
1393 EXPORT_SRC:
1394         $(RM) wanboot_impl.h+ Makefile+
1395         sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
1396                 < wanboot_impl.h > wanboot_impl.h+
1397         $(MV) wanboot_impl.h+ wanboot_impl.h
1398         sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
1399                 < Makefile > Makefile+
1400         $(RM) Makefile
1401         $(MV) Makefile+ Makefile
1402         $(CHMOD) 444 Makefile wanboot_impl.h
1403 # EXPORT DELETE END